home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / wx / _core.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  561.1 KB  |  15,891 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import _core_
  5.  
  6. def _swig_setattr_nondynamic(self, class_type, name, value, static = 1):
  7.     if name == 'this':
  8.         if isinstance(value, class_type):
  9.             self.__dict__[name] = value.this
  10.             if hasattr(value, 'thisown'):
  11.                 self.__dict__['thisown'] = value.thisown
  12.             
  13.             del value.thisown
  14.             return None
  15.         
  16.     
  17.     method = class_type.__swig_setmethods__.get(name, None)
  18.     if method:
  19.         return method(self, value)
  20.     
  21.     if not static and hasattr(self, name) or name == 'thisown':
  22.         self.__dict__[name] = value
  23.     else:
  24.         raise AttributeError('You cannot add attributes to %s' % self)
  25.  
  26.  
  27. def _swig_setattr(self, class_type, name, value):
  28.     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  29.  
  30.  
  31. def _swig_getattr(self, class_type, name):
  32.     method = class_type.__swig_getmethods__.get(name, None)
  33.     if method:
  34.         return method(self)
  35.     
  36.     raise AttributeError, name
  37.  
  38. import types
  39.  
  40. try:
  41.     _object = types.ObjectType
  42.     _newclass = 1
  43. except AttributeError:
  44.     
  45.     class _object:
  46.         pass
  47.  
  48.     _newclass = 0
  49.  
  50. del types
  51.  
  52. def _swig_setattr_nondynamic_method(set):
  53.     
  54.     def set_attr(self, name, value):
  55.         if hasattr(self, name) or name in ('this', 'thisown'):
  56.             set(self, name, value)
  57.         else:
  58.             raise AttributeError('You cannot add attributes to %s' % self)
  59.  
  60.     return set_attr
  61.  
  62. _core_._wxPySetDictionary(vars())
  63. import sys as _sys
  64. wx = _sys.modules[__name__]
  65.  
  66. def _deprecated(callable, msg = None):
  67.     '''
  68.     Create a wrapper function that will raise a DeprecationWarning
  69.     before calling the callable.
  70.     '''
  71.     if msg is None:
  72.         msg = '%s is deprecated' % callable
  73.     
  74.     
  75.     def deprecatedWrapper(*args, **kwargs):
  76.         import warnings
  77.         warnings.warn(msg, DeprecationWarning, stacklevel = 2)
  78.         return callable(*args, **kwargs)
  79.  
  80.     deprecatedWrapper.__doc__ = msg
  81.     return deprecatedWrapper
  82.  
  83. NOT_FOUND = _core_.NOT_FOUND
  84. VSCROLL = _core_.VSCROLL
  85. HSCROLL = _core_.HSCROLL
  86. CAPTION = _core_.CAPTION
  87. DOUBLE_BORDER = _core_.DOUBLE_BORDER
  88. SUNKEN_BORDER = _core_.SUNKEN_BORDER
  89. RAISED_BORDER = _core_.RAISED_BORDER
  90. BORDER = _core_.BORDER
  91. SIMPLE_BORDER = _core_.SIMPLE_BORDER
  92. STATIC_BORDER = _core_.STATIC_BORDER
  93. TRANSPARENT_WINDOW = _core_.TRANSPARENT_WINDOW
  94. NO_BORDER = _core_.NO_BORDER
  95. DEFAULT_CONTROL_BORDER = _core_.DEFAULT_CONTROL_BORDER
  96. DEFAULT_STATUSBAR_STYLE = _core_.DEFAULT_STATUSBAR_STYLE
  97. TAB_TRAVERSAL = _core_.TAB_TRAVERSAL
  98. WANTS_CHARS = _core_.WANTS_CHARS
  99. POPUP_WINDOW = _core_.POPUP_WINDOW
  100. CENTER_FRAME = _core_.CENTER_FRAME
  101. CENTRE_ON_SCREEN = _core_.CENTRE_ON_SCREEN
  102. CENTER_ON_SCREEN = _core_.CENTER_ON_SCREEN
  103. CLIP_CHILDREN = _core_.CLIP_CHILDREN
  104. CLIP_SIBLINGS = _core_.CLIP_SIBLINGS
  105. ALWAYS_SHOW_SB = _core_.ALWAYS_SHOW_SB
  106. RETAINED = _core_.RETAINED
  107. BACKINGSTORE = _core_.BACKINGSTORE
  108. COLOURED = _core_.COLOURED
  109. FIXED_LENGTH = _core_.FIXED_LENGTH
  110. LB_NEEDED_SB = _core_.LB_NEEDED_SB
  111. LB_ALWAYS_SB = _core_.LB_ALWAYS_SB
  112. LB_SORT = _core_.LB_SORT
  113. LB_SINGLE = _core_.LB_SINGLE
  114. LB_MULTIPLE = _core_.LB_MULTIPLE
  115. LB_EXTENDED = _core_.LB_EXTENDED
  116. LB_OWNERDRAW = _core_.LB_OWNERDRAW
  117. LB_HSCROLL = _core_.LB_HSCROLL
  118. PROCESS_ENTER = _core_.PROCESS_ENTER
  119. PASSWORD = _core_.PASSWORD
  120. CB_SIMPLE = _core_.CB_SIMPLE
  121. CB_DROPDOWN = _core_.CB_DROPDOWN
  122. CB_SORT = _core_.CB_SORT
  123. CB_READONLY = _core_.CB_READONLY
  124. RA_HORIZONTAL = _core_.RA_HORIZONTAL
  125. RA_VERTICAL = _core_.RA_VERTICAL
  126. RA_SPECIFY_ROWS = _core_.RA_SPECIFY_ROWS
  127. RA_SPECIFY_COLS = _core_.RA_SPECIFY_COLS
  128. RA_USE_CHECKBOX = _core_.RA_USE_CHECKBOX
  129. RB_GROUP = _core_.RB_GROUP
  130. RB_SINGLE = _core_.RB_SINGLE
  131. SB_HORIZONTAL = _core_.SB_HORIZONTAL
  132. SB_VERTICAL = _core_.SB_VERTICAL
  133. RB_USE_CHECKBOX = _core_.RB_USE_CHECKBOX
  134. ST_SIZEGRIP = _core_.ST_SIZEGRIP
  135. ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE
  136. FLOOD_SURFACE = _core_.FLOOD_SURFACE
  137. FLOOD_BORDER = _core_.FLOOD_BORDER
  138. ODDEVEN_RULE = _core_.ODDEVEN_RULE
  139. WINDING_RULE = _core_.WINDING_RULE
  140. TOOL_TOP = _core_.TOOL_TOP
  141. TOOL_BOTTOM = _core_.TOOL_BOTTOM
  142. TOOL_LEFT = _core_.TOOL_LEFT
  143. TOOL_RIGHT = _core_.TOOL_RIGHT
  144. OK = _core_.OK
  145. YES_NO = _core_.YES_NO
  146. CANCEL = _core_.CANCEL
  147. YES = _core_.YES
  148. NO = _core_.NO
  149. NO_DEFAULT = _core_.NO_DEFAULT
  150. YES_DEFAULT = _core_.YES_DEFAULT
  151. ICON_EXCLAMATION = _core_.ICON_EXCLAMATION
  152. ICON_HAND = _core_.ICON_HAND
  153. ICON_QUESTION = _core_.ICON_QUESTION
  154. ICON_INFORMATION = _core_.ICON_INFORMATION
  155. ICON_STOP = _core_.ICON_STOP
  156. ICON_ASTERISK = _core_.ICON_ASTERISK
  157. ICON_MASK = _core_.ICON_MASK
  158. ICON_WARNING = _core_.ICON_WARNING
  159. ICON_ERROR = _core_.ICON_ERROR
  160. FORWARD = _core_.FORWARD
  161. BACKWARD = _core_.BACKWARD
  162. RESET = _core_.RESET
  163. HELP = _core_.HELP
  164. MORE = _core_.MORE
  165. SETUP = _core_.SETUP
  166. SIZE_AUTO_WIDTH = _core_.SIZE_AUTO_WIDTH
  167. SIZE_AUTO_HEIGHT = _core_.SIZE_AUTO_HEIGHT
  168. SIZE_AUTO = _core_.SIZE_AUTO
  169. SIZE_USE_EXISTING = _core_.SIZE_USE_EXISTING
  170. SIZE_ALLOW_MINUS_ONE = _core_.SIZE_ALLOW_MINUS_ONE
  171. SIZE_FORCE = _core_.SIZE_FORCE
  172. PORTRAIT = _core_.PORTRAIT
  173. LANDSCAPE = _core_.LANDSCAPE
  174. PRINT_QUALITY_HIGH = _core_.PRINT_QUALITY_HIGH
  175. PRINT_QUALITY_MEDIUM = _core_.PRINT_QUALITY_MEDIUM
  176. PRINT_QUALITY_LOW = _core_.PRINT_QUALITY_LOW
  177. PRINT_QUALITY_DRAFT = _core_.PRINT_QUALITY_DRAFT
  178. ID_ANY = _core_.ID_ANY
  179. ID_SEPARATOR = _core_.ID_SEPARATOR
  180. ID_NONE = _core_.ID_NONE
  181. ID_LOWEST = _core_.ID_LOWEST
  182. ID_OPEN = _core_.ID_OPEN
  183. ID_CLOSE = _core_.ID_CLOSE
  184. ID_NEW = _core_.ID_NEW
  185. ID_SAVE = _core_.ID_SAVE
  186. ID_SAVEAS = _core_.ID_SAVEAS
  187. ID_REVERT = _core_.ID_REVERT
  188. ID_EXIT = _core_.ID_EXIT
  189. ID_UNDO = _core_.ID_UNDO
  190. ID_REDO = _core_.ID_REDO
  191. ID_HELP = _core_.ID_HELP
  192. ID_PRINT = _core_.ID_PRINT
  193. ID_PRINT_SETUP = _core_.ID_PRINT_SETUP
  194. ID_PREVIEW = _core_.ID_PREVIEW
  195. ID_ABOUT = _core_.ID_ABOUT
  196. ID_HELP_CONTENTS = _core_.ID_HELP_CONTENTS
  197. ID_HELP_COMMANDS = _core_.ID_HELP_COMMANDS
  198. ID_HELP_PROCEDURES = _core_.ID_HELP_PROCEDURES
  199. ID_HELP_CONTEXT = _core_.ID_HELP_CONTEXT
  200. ID_CLOSE_ALL = _core_.ID_CLOSE_ALL
  201. ID_PREFERENCES = _core_.ID_PREFERENCES
  202. ID_CUT = _core_.ID_CUT
  203. ID_COPY = _core_.ID_COPY
  204. ID_PASTE = _core_.ID_PASTE
  205. ID_CLEAR = _core_.ID_CLEAR
  206. ID_FIND = _core_.ID_FIND
  207. ID_DUPLICATE = _core_.ID_DUPLICATE
  208. ID_SELECTALL = _core_.ID_SELECTALL
  209. ID_DELETE = _core_.ID_DELETE
  210. ID_REPLACE = _core_.ID_REPLACE
  211. ID_REPLACE_ALL = _core_.ID_REPLACE_ALL
  212. ID_PROPERTIES = _core_.ID_PROPERTIES
  213. ID_VIEW_DETAILS = _core_.ID_VIEW_DETAILS
  214. ID_VIEW_LARGEICONS = _core_.ID_VIEW_LARGEICONS
  215. ID_VIEW_SMALLICONS = _core_.ID_VIEW_SMALLICONS
  216. ID_VIEW_LIST = _core_.ID_VIEW_LIST
  217. ID_VIEW_SORTDATE = _core_.ID_VIEW_SORTDATE
  218. ID_VIEW_SORTNAME = _core_.ID_VIEW_SORTNAME
  219. ID_VIEW_SORTSIZE = _core_.ID_VIEW_SORTSIZE
  220. ID_VIEW_SORTTYPE = _core_.ID_VIEW_SORTTYPE
  221. ID_FILE1 = _core_.ID_FILE1
  222. ID_FILE2 = _core_.ID_FILE2
  223. ID_FILE3 = _core_.ID_FILE3
  224. ID_FILE4 = _core_.ID_FILE4
  225. ID_FILE5 = _core_.ID_FILE5
  226. ID_FILE6 = _core_.ID_FILE6
  227. ID_FILE7 = _core_.ID_FILE7
  228. ID_FILE8 = _core_.ID_FILE8
  229. ID_FILE9 = _core_.ID_FILE9
  230. ID_OK = _core_.ID_OK
  231. ID_CANCEL = _core_.ID_CANCEL
  232. ID_APPLY = _core_.ID_APPLY
  233. ID_YES = _core_.ID_YES
  234. ID_NO = _core_.ID_NO
  235. ID_STATIC = _core_.ID_STATIC
  236. ID_FORWARD = _core_.ID_FORWARD
  237. ID_BACKWARD = _core_.ID_BACKWARD
  238. ID_DEFAULT = _core_.ID_DEFAULT
  239. ID_MORE = _core_.ID_MORE
  240. ID_SETUP = _core_.ID_SETUP
  241. ID_RESET = _core_.ID_RESET
  242. ID_CONTEXT_HELP = _core_.ID_CONTEXT_HELP
  243. ID_YESTOALL = _core_.ID_YESTOALL
  244. ID_NOTOALL = _core_.ID_NOTOALL
  245. ID_ABORT = _core_.ID_ABORT
  246. ID_RETRY = _core_.ID_RETRY
  247. ID_IGNORE = _core_.ID_IGNORE
  248. ID_ADD = _core_.ID_ADD
  249. ID_REMOVE = _core_.ID_REMOVE
  250. ID_UP = _core_.ID_UP
  251. ID_DOWN = _core_.ID_DOWN
  252. ID_HOME = _core_.ID_HOME
  253. ID_REFRESH = _core_.ID_REFRESH
  254. ID_STOP = _core_.ID_STOP
  255. ID_INDEX = _core_.ID_INDEX
  256. ID_BOLD = _core_.ID_BOLD
  257. ID_ITALIC = _core_.ID_ITALIC
  258. ID_JUSTIFY_CENTER = _core_.ID_JUSTIFY_CENTER
  259. ID_JUSTIFY_FILL = _core_.ID_JUSTIFY_FILL
  260. ID_JUSTIFY_RIGHT = _core_.ID_JUSTIFY_RIGHT
  261. ID_JUSTIFY_LEFT = _core_.ID_JUSTIFY_LEFT
  262. ID_UNDERLINE = _core_.ID_UNDERLINE
  263. ID_INDENT = _core_.ID_INDENT
  264. ID_UNINDENT = _core_.ID_UNINDENT
  265. ID_ZOOM_100 = _core_.ID_ZOOM_100
  266. ID_ZOOM_FIT = _core_.ID_ZOOM_FIT
  267. ID_ZOOM_IN = _core_.ID_ZOOM_IN
  268. ID_ZOOM_OUT = _core_.ID_ZOOM_OUT
  269. ID_UNDELETE = _core_.ID_UNDELETE
  270. ID_REVERT_TO_SAVED = _core_.ID_REVERT_TO_SAVED
  271. ID_HIGHEST = _core_.ID_HIGHEST
  272. OPEN = _core_.OPEN
  273. SAVE = _core_.SAVE
  274. HIDE_READONLY = _core_.HIDE_READONLY
  275. OVERWRITE_PROMPT = _core_.OVERWRITE_PROMPT
  276. FILE_MUST_EXIST = _core_.FILE_MUST_EXIST
  277. MULTIPLE = _core_.MULTIPLE
  278. CHANGE_DIR = _core_.CHANGE_DIR
  279. ACCEL_ALT = _core_.ACCEL_ALT
  280. ACCEL_CTRL = _core_.ACCEL_CTRL
  281. ACCEL_SHIFT = _core_.ACCEL_SHIFT
  282. ACCEL_NORMAL = _core_.ACCEL_NORMAL
  283. PD_AUTO_HIDE = _core_.PD_AUTO_HIDE
  284. PD_APP_MODAL = _core_.PD_APP_MODAL
  285. PD_CAN_ABORT = _core_.PD_CAN_ABORT
  286. PD_ELAPSED_TIME = _core_.PD_ELAPSED_TIME
  287. PD_ESTIMATED_TIME = _core_.PD_ESTIMATED_TIME
  288. PD_REMAINING_TIME = _core_.PD_REMAINING_TIME
  289. PD_SMOOTH = _core_.PD_SMOOTH
  290. PD_CAN_SKIP = _core_.PD_CAN_SKIP
  291. DD_NEW_DIR_BUTTON = _core_.DD_NEW_DIR_BUTTON
  292. DD_DEFAULT_STYLE = _core_.DD_DEFAULT_STYLE
  293. MENU_TEAROFF = _core_.MENU_TEAROFF
  294. MB_DOCKABLE = _core_.MB_DOCKABLE
  295. NO_FULL_REPAINT_ON_RESIZE = _core_.NO_FULL_REPAINT_ON_RESIZE
  296. FULL_REPAINT_ON_RESIZE = _core_.FULL_REPAINT_ON_RESIZE
  297. LI_HORIZONTAL = _core_.LI_HORIZONTAL
  298. LI_VERTICAL = _core_.LI_VERTICAL
  299. WS_EX_VALIDATE_RECURSIVELY = _core_.WS_EX_VALIDATE_RECURSIVELY
  300. WS_EX_BLOCK_EVENTS = _core_.WS_EX_BLOCK_EVENTS
  301. WS_EX_TRANSIENT = _core_.WS_EX_TRANSIENT
  302. WS_EX_THEMED_BACKGROUND = _core_.WS_EX_THEMED_BACKGROUND
  303. WS_EX_PROCESS_IDLE = _core_.WS_EX_PROCESS_IDLE
  304. WS_EX_PROCESS_UI_UPDATES = _core_.WS_EX_PROCESS_UI_UPDATES
  305. MM_TEXT = _core_.MM_TEXT
  306. MM_LOMETRIC = _core_.MM_LOMETRIC
  307. MM_HIMETRIC = _core_.MM_HIMETRIC
  308. MM_LOENGLISH = _core_.MM_LOENGLISH
  309. MM_HIENGLISH = _core_.MM_HIENGLISH
  310. MM_TWIPS = _core_.MM_TWIPS
  311. MM_ISOTROPIC = _core_.MM_ISOTROPIC
  312. MM_ANISOTROPIC = _core_.MM_ANISOTROPIC
  313. MM_POINTS = _core_.MM_POINTS
  314. MM_METRIC = _core_.MM_METRIC
  315. CENTRE = _core_.CENTRE
  316. CENTER = _core_.CENTER
  317. HORIZONTAL = _core_.HORIZONTAL
  318. VERTICAL = _core_.VERTICAL
  319. BOTH = _core_.BOTH
  320. LEFT = _core_.LEFT
  321. RIGHT = _core_.RIGHT
  322. UP = _core_.UP
  323. DOWN = _core_.DOWN
  324. TOP = _core_.TOP
  325. BOTTOM = _core_.BOTTOM
  326. NORTH = _core_.NORTH
  327. SOUTH = _core_.SOUTH
  328. WEST = _core_.WEST
  329. EAST = _core_.EAST
  330. ALL = _core_.ALL
  331. ALIGN_NOT = _core_.ALIGN_NOT
  332. ALIGN_CENTER_HORIZONTAL = _core_.ALIGN_CENTER_HORIZONTAL
  333. ALIGN_CENTRE_HORIZONTAL = _core_.ALIGN_CENTRE_HORIZONTAL
  334. ALIGN_LEFT = _core_.ALIGN_LEFT
  335. ALIGN_TOP = _core_.ALIGN_TOP
  336. ALIGN_RIGHT = _core_.ALIGN_RIGHT
  337. ALIGN_BOTTOM = _core_.ALIGN_BOTTOM
  338. ALIGN_CENTER_VERTICAL = _core_.ALIGN_CENTER_VERTICAL
  339. ALIGN_CENTRE_VERTICAL = _core_.ALIGN_CENTRE_VERTICAL
  340. ALIGN_CENTER = _core_.ALIGN_CENTER
  341. ALIGN_CENTRE = _core_.ALIGN_CENTRE
  342. ALIGN_MASK = _core_.ALIGN_MASK
  343. STRETCH_NOT = _core_.STRETCH_NOT
  344. SHRINK = _core_.SHRINK
  345. GROW = _core_.GROW
  346. EXPAND = _core_.EXPAND
  347. SHAPED = _core_.SHAPED
  348. FIXED_MINSIZE = _core_.FIXED_MINSIZE
  349. TILE = _core_.TILE
  350. ADJUST_MINSIZE = _core_.ADJUST_MINSIZE
  351. BORDER_DEFAULT = _core_.BORDER_DEFAULT
  352. BORDER_NONE = _core_.BORDER_NONE
  353. BORDER_STATIC = _core_.BORDER_STATIC
  354. BORDER_SIMPLE = _core_.BORDER_SIMPLE
  355. BORDER_RAISED = _core_.BORDER_RAISED
  356. BORDER_SUNKEN = _core_.BORDER_SUNKEN
  357. BORDER_DOUBLE = _core_.BORDER_DOUBLE
  358. BORDER_MASK = _core_.BORDER_MASK
  359. BG_STYLE_SYSTEM = _core_.BG_STYLE_SYSTEM
  360. BG_STYLE_COLOUR = _core_.BG_STYLE_COLOUR
  361. BG_STYLE_CUSTOM = _core_.BG_STYLE_CUSTOM
  362. DEFAULT = _core_.DEFAULT
  363. DECORATIVE = _core_.DECORATIVE
  364. ROMAN = _core_.ROMAN
  365. SCRIPT = _core_.SCRIPT
  366. SWISS = _core_.SWISS
  367. MODERN = _core_.MODERN
  368. TELETYPE = _core_.TELETYPE
  369. VARIABLE = _core_.VARIABLE
  370. FIXED = _core_.FIXED
  371. NORMAL = _core_.NORMAL
  372. LIGHT = _core_.LIGHT
  373. BOLD = _core_.BOLD
  374. ITALIC = _core_.ITALIC
  375. SLANT = _core_.SLANT
  376. SOLID = _core_.SOLID
  377. DOT = _core_.DOT
  378. LONG_DASH = _core_.LONG_DASH
  379. SHORT_DASH = _core_.SHORT_DASH
  380. DOT_DASH = _core_.DOT_DASH
  381. USER_DASH = _core_.USER_DASH
  382. TRANSPARENT = _core_.TRANSPARENT
  383. STIPPLE = _core_.STIPPLE
  384. STIPPLE_MASK = _core_.STIPPLE_MASK
  385. STIPPLE_MASK_OPAQUE = _core_.STIPPLE_MASK_OPAQUE
  386. BDIAGONAL_HATCH = _core_.BDIAGONAL_HATCH
  387. CROSSDIAG_HATCH = _core_.CROSSDIAG_HATCH
  388. FDIAGONAL_HATCH = _core_.FDIAGONAL_HATCH
  389. CROSS_HATCH = _core_.CROSS_HATCH
  390. HORIZONTAL_HATCH = _core_.HORIZONTAL_HATCH
  391. VERTICAL_HATCH = _core_.VERTICAL_HATCH
  392. JOIN_BEVEL = _core_.JOIN_BEVEL
  393. JOIN_MITER = _core_.JOIN_MITER
  394. JOIN_ROUND = _core_.JOIN_ROUND
  395. CAP_ROUND = _core_.CAP_ROUND
  396. CAP_PROJECTING = _core_.CAP_PROJECTING
  397. CAP_BUTT = _core_.CAP_BUTT
  398. CLEAR = _core_.CLEAR
  399. XOR = _core_.XOR
  400. INVERT = _core_.INVERT
  401. OR_REVERSE = _core_.OR_REVERSE
  402. AND_REVERSE = _core_.AND_REVERSE
  403. COPY = _core_.COPY
  404. AND = _core_.AND
  405. AND_INVERT = _core_.AND_INVERT
  406. NO_OP = _core_.NO_OP
  407. NOR = _core_.NOR
  408. EQUIV = _core_.EQUIV
  409. SRC_INVERT = _core_.SRC_INVERT
  410. OR_INVERT = _core_.OR_INVERT
  411. NAND = _core_.NAND
  412. OR = _core_.OR
  413. SET = _core_.SET
  414. WXK_BACK = _core_.WXK_BACK
  415. WXK_TAB = _core_.WXK_TAB
  416. WXK_RETURN = _core_.WXK_RETURN
  417. WXK_ESCAPE = _core_.WXK_ESCAPE
  418. WXK_SPACE = _core_.WXK_SPACE
  419. WXK_DELETE = _core_.WXK_DELETE
  420. WXK_START = _core_.WXK_START
  421. WXK_LBUTTON = _core_.WXK_LBUTTON
  422. WXK_RBUTTON = _core_.WXK_RBUTTON
  423. WXK_CANCEL = _core_.WXK_CANCEL
  424. WXK_MBUTTON = _core_.WXK_MBUTTON
  425. WXK_CLEAR = _core_.WXK_CLEAR
  426. WXK_SHIFT = _core_.WXK_SHIFT
  427. WXK_ALT = _core_.WXK_ALT
  428. WXK_CONTROL = _core_.WXK_CONTROL
  429. WXK_MENU = _core_.WXK_MENU
  430. WXK_PAUSE = _core_.WXK_PAUSE
  431. WXK_CAPITAL = _core_.WXK_CAPITAL
  432. WXK_PRIOR = _core_.WXK_PRIOR
  433. WXK_NEXT = _core_.WXK_NEXT
  434. WXK_END = _core_.WXK_END
  435. WXK_HOME = _core_.WXK_HOME
  436. WXK_LEFT = _core_.WXK_LEFT
  437. WXK_UP = _core_.WXK_UP
  438. WXK_RIGHT = _core_.WXK_RIGHT
  439. WXK_DOWN = _core_.WXK_DOWN
  440. WXK_SELECT = _core_.WXK_SELECT
  441. WXK_PRINT = _core_.WXK_PRINT
  442. WXK_EXECUTE = _core_.WXK_EXECUTE
  443. WXK_SNAPSHOT = _core_.WXK_SNAPSHOT
  444. WXK_INSERT = _core_.WXK_INSERT
  445. WXK_HELP = _core_.WXK_HELP
  446. WXK_NUMPAD0 = _core_.WXK_NUMPAD0
  447. WXK_NUMPAD1 = _core_.WXK_NUMPAD1
  448. WXK_NUMPAD2 = _core_.WXK_NUMPAD2
  449. WXK_NUMPAD3 = _core_.WXK_NUMPAD3
  450. WXK_NUMPAD4 = _core_.WXK_NUMPAD4
  451. WXK_NUMPAD5 = _core_.WXK_NUMPAD5
  452. WXK_NUMPAD6 = _core_.WXK_NUMPAD6
  453. WXK_NUMPAD7 = _core_.WXK_NUMPAD7
  454. WXK_NUMPAD8 = _core_.WXK_NUMPAD8
  455. WXK_NUMPAD9 = _core_.WXK_NUMPAD9
  456. WXK_MULTIPLY = _core_.WXK_MULTIPLY
  457. WXK_ADD = _core_.WXK_ADD
  458. WXK_SEPARATOR = _core_.WXK_SEPARATOR
  459. WXK_SUBTRACT = _core_.WXK_SUBTRACT
  460. WXK_DECIMAL = _core_.WXK_DECIMAL
  461. WXK_DIVIDE = _core_.WXK_DIVIDE
  462. WXK_F1 = _core_.WXK_F1
  463. WXK_F2 = _core_.WXK_F2
  464. WXK_F3 = _core_.WXK_F3
  465. WXK_F4 = _core_.WXK_F4
  466. WXK_F5 = _core_.WXK_F5
  467. WXK_F6 = _core_.WXK_F6
  468. WXK_F7 = _core_.WXK_F7
  469. WXK_F8 = _core_.WXK_F8
  470. WXK_F9 = _core_.WXK_F9
  471. WXK_F10 = _core_.WXK_F10
  472. WXK_F11 = _core_.WXK_F11
  473. WXK_F12 = _core_.WXK_F12
  474. WXK_F13 = _core_.WXK_F13
  475. WXK_F14 = _core_.WXK_F14
  476. WXK_F15 = _core_.WXK_F15
  477. WXK_F16 = _core_.WXK_F16
  478. WXK_F17 = _core_.WXK_F17
  479. WXK_F18 = _core_.WXK_F18
  480. WXK_F19 = _core_.WXK_F19
  481. WXK_F20 = _core_.WXK_F20
  482. WXK_F21 = _core_.WXK_F21
  483. WXK_F22 = _core_.WXK_F22
  484. WXK_F23 = _core_.WXK_F23
  485. WXK_F24 = _core_.WXK_F24
  486. WXK_NUMLOCK = _core_.WXK_NUMLOCK
  487. WXK_SCROLL = _core_.WXK_SCROLL
  488. WXK_PAGEUP = _core_.WXK_PAGEUP
  489. WXK_PAGEDOWN = _core_.WXK_PAGEDOWN
  490. WXK_NUMPAD_SPACE = _core_.WXK_NUMPAD_SPACE
  491. WXK_NUMPAD_TAB = _core_.WXK_NUMPAD_TAB
  492. WXK_NUMPAD_ENTER = _core_.WXK_NUMPAD_ENTER
  493. WXK_NUMPAD_F1 = _core_.WXK_NUMPAD_F1
  494. WXK_NUMPAD_F2 = _core_.WXK_NUMPAD_F2
  495. WXK_NUMPAD_F3 = _core_.WXK_NUMPAD_F3
  496. WXK_NUMPAD_F4 = _core_.WXK_NUMPAD_F4
  497. WXK_NUMPAD_HOME = _core_.WXK_NUMPAD_HOME
  498. WXK_NUMPAD_LEFT = _core_.WXK_NUMPAD_LEFT
  499. WXK_NUMPAD_UP = _core_.WXK_NUMPAD_UP
  500. WXK_NUMPAD_RIGHT = _core_.WXK_NUMPAD_RIGHT
  501. WXK_NUMPAD_DOWN = _core_.WXK_NUMPAD_DOWN
  502. WXK_NUMPAD_PRIOR = _core_.WXK_NUMPAD_PRIOR
  503. WXK_NUMPAD_PAGEUP = _core_.WXK_NUMPAD_PAGEUP
  504. WXK_NUMPAD_NEXT = _core_.WXK_NUMPAD_NEXT
  505. WXK_NUMPAD_PAGEDOWN = _core_.WXK_NUMPAD_PAGEDOWN
  506. WXK_NUMPAD_END = _core_.WXK_NUMPAD_END
  507. WXK_NUMPAD_BEGIN = _core_.WXK_NUMPAD_BEGIN
  508. WXK_NUMPAD_INSERT = _core_.WXK_NUMPAD_INSERT
  509. WXK_NUMPAD_DELETE = _core_.WXK_NUMPAD_DELETE
  510. WXK_NUMPAD_EQUAL = _core_.WXK_NUMPAD_EQUAL
  511. WXK_NUMPAD_MULTIPLY = _core_.WXK_NUMPAD_MULTIPLY
  512. WXK_NUMPAD_ADD = _core_.WXK_NUMPAD_ADD
  513. WXK_NUMPAD_SEPARATOR = _core_.WXK_NUMPAD_SEPARATOR
  514. WXK_NUMPAD_SUBTRACT = _core_.WXK_NUMPAD_SUBTRACT
  515. WXK_NUMPAD_DECIMAL = _core_.WXK_NUMPAD_DECIMAL
  516. WXK_NUMPAD_DIVIDE = _core_.WXK_NUMPAD_DIVIDE
  517. WXK_WINDOWS_LEFT = _core_.WXK_WINDOWS_LEFT
  518. WXK_WINDOWS_RIGHT = _core_.WXK_WINDOWS_RIGHT
  519. WXK_WINDOWS_MENU = _core_.WXK_WINDOWS_MENU
  520. WXK_COMMAND = _core_.WXK_COMMAND
  521. WXK_SPECIAL1 = _core_.WXK_SPECIAL1
  522. WXK_SPECIAL2 = _core_.WXK_SPECIAL2
  523. WXK_SPECIAL3 = _core_.WXK_SPECIAL3
  524. WXK_SPECIAL4 = _core_.WXK_SPECIAL4
  525. WXK_SPECIAL5 = _core_.WXK_SPECIAL5
  526. WXK_SPECIAL6 = _core_.WXK_SPECIAL6
  527. WXK_SPECIAL7 = _core_.WXK_SPECIAL7
  528. WXK_SPECIAL8 = _core_.WXK_SPECIAL8
  529. WXK_SPECIAL9 = _core_.WXK_SPECIAL9
  530. WXK_SPECIAL10 = _core_.WXK_SPECIAL10
  531. WXK_SPECIAL11 = _core_.WXK_SPECIAL11
  532. WXK_SPECIAL12 = _core_.WXK_SPECIAL12
  533. WXK_SPECIAL13 = _core_.WXK_SPECIAL13
  534. WXK_SPECIAL14 = _core_.WXK_SPECIAL14
  535. WXK_SPECIAL15 = _core_.WXK_SPECIAL15
  536. WXK_SPECIAL16 = _core_.WXK_SPECIAL16
  537. WXK_SPECIAL17 = _core_.WXK_SPECIAL17
  538. WXK_SPECIAL18 = _core_.WXK_SPECIAL18
  539. WXK_SPECIAL19 = _core_.WXK_SPECIAL19
  540. WXK_SPECIAL20 = _core_.WXK_SPECIAL20
  541. PAPER_NONE = _core_.PAPER_NONE
  542. PAPER_LETTER = _core_.PAPER_LETTER
  543. PAPER_LEGAL = _core_.PAPER_LEGAL
  544. PAPER_A4 = _core_.PAPER_A4
  545. PAPER_CSHEET = _core_.PAPER_CSHEET
  546. PAPER_DSHEET = _core_.PAPER_DSHEET
  547. PAPER_ESHEET = _core_.PAPER_ESHEET
  548. PAPER_LETTERSMALL = _core_.PAPER_LETTERSMALL
  549. PAPER_TABLOID = _core_.PAPER_TABLOID
  550. PAPER_LEDGER = _core_.PAPER_LEDGER
  551. PAPER_STATEMENT = _core_.PAPER_STATEMENT
  552. PAPER_EXECUTIVE = _core_.PAPER_EXECUTIVE
  553. PAPER_A3 = _core_.PAPER_A3
  554. PAPER_A4SMALL = _core_.PAPER_A4SMALL
  555. PAPER_A5 = _core_.PAPER_A5
  556. PAPER_B4 = _core_.PAPER_B4
  557. PAPER_B5 = _core_.PAPER_B5
  558. PAPER_FOLIO = _core_.PAPER_FOLIO
  559. PAPER_QUARTO = _core_.PAPER_QUARTO
  560. PAPER_10X14 = _core_.PAPER_10X14
  561. PAPER_11X17 = _core_.PAPER_11X17
  562. PAPER_NOTE = _core_.PAPER_NOTE
  563. PAPER_ENV_9 = _core_.PAPER_ENV_9
  564. PAPER_ENV_10 = _core_.PAPER_ENV_10
  565. PAPER_ENV_11 = _core_.PAPER_ENV_11
  566. PAPER_ENV_12 = _core_.PAPER_ENV_12
  567. PAPER_ENV_14 = _core_.PAPER_ENV_14
  568. PAPER_ENV_DL = _core_.PAPER_ENV_DL
  569. PAPER_ENV_C5 = _core_.PAPER_ENV_C5
  570. PAPER_ENV_C3 = _core_.PAPER_ENV_C3
  571. PAPER_ENV_C4 = _core_.PAPER_ENV_C4
  572. PAPER_ENV_C6 = _core_.PAPER_ENV_C6
  573. PAPER_ENV_C65 = _core_.PAPER_ENV_C65
  574. PAPER_ENV_B4 = _core_.PAPER_ENV_B4
  575. PAPER_ENV_B5 = _core_.PAPER_ENV_B5
  576. PAPER_ENV_B6 = _core_.PAPER_ENV_B6
  577. PAPER_ENV_ITALY = _core_.PAPER_ENV_ITALY
  578. PAPER_ENV_MONARCH = _core_.PAPER_ENV_MONARCH
  579. PAPER_ENV_PERSONAL = _core_.PAPER_ENV_PERSONAL
  580. PAPER_FANFOLD_US = _core_.PAPER_FANFOLD_US
  581. PAPER_FANFOLD_STD_GERMAN = _core_.PAPER_FANFOLD_STD_GERMAN
  582. PAPER_FANFOLD_LGL_GERMAN = _core_.PAPER_FANFOLD_LGL_GERMAN
  583. PAPER_ISO_B4 = _core_.PAPER_ISO_B4
  584. PAPER_JAPANESE_POSTCARD = _core_.PAPER_JAPANESE_POSTCARD
  585. PAPER_9X11 = _core_.PAPER_9X11
  586. PAPER_10X11 = _core_.PAPER_10X11
  587. PAPER_15X11 = _core_.PAPER_15X11
  588. PAPER_ENV_INVITE = _core_.PAPER_ENV_INVITE
  589. PAPER_LETTER_EXTRA = _core_.PAPER_LETTER_EXTRA
  590. PAPER_LEGAL_EXTRA = _core_.PAPER_LEGAL_EXTRA
  591. PAPER_TABLOID_EXTRA = _core_.PAPER_TABLOID_EXTRA
  592. PAPER_A4_EXTRA = _core_.PAPER_A4_EXTRA
  593. PAPER_LETTER_TRANSVERSE = _core_.PAPER_LETTER_TRANSVERSE
  594. PAPER_A4_TRANSVERSE = _core_.PAPER_A4_TRANSVERSE
  595. PAPER_LETTER_EXTRA_TRANSVERSE = _core_.PAPER_LETTER_EXTRA_TRANSVERSE
  596. PAPER_A_PLUS = _core_.PAPER_A_PLUS
  597. PAPER_B_PLUS = _core_.PAPER_B_PLUS
  598. PAPER_LETTER_PLUS = _core_.PAPER_LETTER_PLUS
  599. PAPER_A4_PLUS = _core_.PAPER_A4_PLUS
  600. PAPER_A5_TRANSVERSE = _core_.PAPER_A5_TRANSVERSE
  601. PAPER_B5_TRANSVERSE = _core_.PAPER_B5_TRANSVERSE
  602. PAPER_A3_EXTRA = _core_.PAPER_A3_EXTRA
  603. PAPER_A5_EXTRA = _core_.PAPER_A5_EXTRA
  604. PAPER_B5_EXTRA = _core_.PAPER_B5_EXTRA
  605. PAPER_A2 = _core_.PAPER_A2
  606. PAPER_A3_TRANSVERSE = _core_.PAPER_A3_TRANSVERSE
  607. PAPER_A3_EXTRA_TRANSVERSE = _core_.PAPER_A3_EXTRA_TRANSVERSE
  608. PAPER_DBL_JAPANESE_POSTCARD = _core_.PAPER_DBL_JAPANESE_POSTCARD
  609. PAPER_A6 = _core_.PAPER_A6
  610. PAPER_JENV_KAKU2 = _core_.PAPER_JENV_KAKU2
  611. PAPER_JENV_KAKU3 = _core_.PAPER_JENV_KAKU3
  612. PAPER_JENV_CHOU3 = _core_.PAPER_JENV_CHOU3
  613. PAPER_JENV_CHOU4 = _core_.PAPER_JENV_CHOU4
  614. PAPER_LETTER_ROTATED = _core_.PAPER_LETTER_ROTATED
  615. PAPER_A3_ROTATED = _core_.PAPER_A3_ROTATED
  616. PAPER_A4_ROTATED = _core_.PAPER_A4_ROTATED
  617. PAPER_A5_ROTATED = _core_.PAPER_A5_ROTATED
  618. PAPER_B4_JIS_ROTATED = _core_.PAPER_B4_JIS_ROTATED
  619. PAPER_B5_JIS_ROTATED = _core_.PAPER_B5_JIS_ROTATED
  620. PAPER_JAPANESE_POSTCARD_ROTATED = _core_.PAPER_JAPANESE_POSTCARD_ROTATED
  621. PAPER_DBL_JAPANESE_POSTCARD_ROTATED = _core_.PAPER_DBL_JAPANESE_POSTCARD_ROTATED
  622. PAPER_A6_ROTATED = _core_.PAPER_A6_ROTATED
  623. PAPER_JENV_KAKU2_ROTATED = _core_.PAPER_JENV_KAKU2_ROTATED
  624. PAPER_JENV_KAKU3_ROTATED = _core_.PAPER_JENV_KAKU3_ROTATED
  625. PAPER_JENV_CHOU3_ROTATED = _core_.PAPER_JENV_CHOU3_ROTATED
  626. PAPER_JENV_CHOU4_ROTATED = _core_.PAPER_JENV_CHOU4_ROTATED
  627. PAPER_B6_JIS = _core_.PAPER_B6_JIS
  628. PAPER_B6_JIS_ROTATED = _core_.PAPER_B6_JIS_ROTATED
  629. PAPER_12X11 = _core_.PAPER_12X11
  630. PAPER_JENV_YOU4 = _core_.PAPER_JENV_YOU4
  631. PAPER_JENV_YOU4_ROTATED = _core_.PAPER_JENV_YOU4_ROTATED
  632. PAPER_P16K = _core_.PAPER_P16K
  633. PAPER_P32K = _core_.PAPER_P32K
  634. PAPER_P32KBIG = _core_.PAPER_P32KBIG
  635. PAPER_PENV_1 = _core_.PAPER_PENV_1
  636. PAPER_PENV_2 = _core_.PAPER_PENV_2
  637. PAPER_PENV_3 = _core_.PAPER_PENV_3
  638. PAPER_PENV_4 = _core_.PAPER_PENV_4
  639. PAPER_PENV_5 = _core_.PAPER_PENV_5
  640. PAPER_PENV_6 = _core_.PAPER_PENV_6
  641. PAPER_PENV_7 = _core_.PAPER_PENV_7
  642. PAPER_PENV_8 = _core_.PAPER_PENV_8
  643. PAPER_PENV_9 = _core_.PAPER_PENV_9
  644. PAPER_PENV_10 = _core_.PAPER_PENV_10
  645. PAPER_P16K_ROTATED = _core_.PAPER_P16K_ROTATED
  646. PAPER_P32K_ROTATED = _core_.PAPER_P32K_ROTATED
  647. PAPER_P32KBIG_ROTATED = _core_.PAPER_P32KBIG_ROTATED
  648. PAPER_PENV_1_ROTATED = _core_.PAPER_PENV_1_ROTATED
  649. PAPER_PENV_2_ROTATED = _core_.PAPER_PENV_2_ROTATED
  650. PAPER_PENV_3_ROTATED = _core_.PAPER_PENV_3_ROTATED
  651. PAPER_PENV_4_ROTATED = _core_.PAPER_PENV_4_ROTATED
  652. PAPER_PENV_5_ROTATED = _core_.PAPER_PENV_5_ROTATED
  653. PAPER_PENV_6_ROTATED = _core_.PAPER_PENV_6_ROTATED
  654. PAPER_PENV_7_ROTATED = _core_.PAPER_PENV_7_ROTATED
  655. PAPER_PENV_8_ROTATED = _core_.PAPER_PENV_8_ROTATED
  656. PAPER_PENV_9_ROTATED = _core_.PAPER_PENV_9_ROTATED
  657. PAPER_PENV_10_ROTATED = _core_.PAPER_PENV_10_ROTATED
  658. DUPLEX_SIMPLEX = _core_.DUPLEX_SIMPLEX
  659. DUPLEX_HORIZONTAL = _core_.DUPLEX_HORIZONTAL
  660. DUPLEX_VERTICAL = _core_.DUPLEX_VERTICAL
  661. ITEM_SEPARATOR = _core_.ITEM_SEPARATOR
  662. ITEM_NORMAL = _core_.ITEM_NORMAL
  663. ITEM_CHECK = _core_.ITEM_CHECK
  664. ITEM_RADIO = _core_.ITEM_RADIO
  665. ITEM_MAX = _core_.ITEM_MAX
  666. HT_NOWHERE = _core_.HT_NOWHERE
  667. HT_SCROLLBAR_FIRST = _core_.HT_SCROLLBAR_FIRST
  668. HT_SCROLLBAR_ARROW_LINE_1 = _core_.HT_SCROLLBAR_ARROW_LINE_1
  669. HT_SCROLLBAR_ARROW_LINE_2 = _core_.HT_SCROLLBAR_ARROW_LINE_2
  670. HT_SCROLLBAR_ARROW_PAGE_1 = _core_.HT_SCROLLBAR_ARROW_PAGE_1
  671. HT_SCROLLBAR_ARROW_PAGE_2 = _core_.HT_SCROLLBAR_ARROW_PAGE_2
  672. HT_SCROLLBAR_THUMB = _core_.HT_SCROLLBAR_THUMB
  673. HT_SCROLLBAR_BAR_1 = _core_.HT_SCROLLBAR_BAR_1
  674. HT_SCROLLBAR_BAR_2 = _core_.HT_SCROLLBAR_BAR_2
  675. HT_SCROLLBAR_LAST = _core_.HT_SCROLLBAR_LAST
  676. HT_WINDOW_OUTSIDE = _core_.HT_WINDOW_OUTSIDE
  677. HT_WINDOW_INSIDE = _core_.HT_WINDOW_INSIDE
  678. HT_WINDOW_VERT_SCROLLBAR = _core_.HT_WINDOW_VERT_SCROLLBAR
  679. HT_WINDOW_HORZ_SCROLLBAR = _core_.HT_WINDOW_HORZ_SCROLLBAR
  680. HT_WINDOW_CORNER = _core_.HT_WINDOW_CORNER
  681. HT_MAX = _core_.HT_MAX
  682. MOD_NONE = _core_.MOD_NONE
  683. MOD_ALT = _core_.MOD_ALT
  684. MOD_CONTROL = _core_.MOD_CONTROL
  685. MOD_SHIFT = _core_.MOD_SHIFT
  686. MOD_WIN = _core_.MOD_WIN
  687. UPDATE_UI_NONE = _core_.UPDATE_UI_NONE
  688. UPDATE_UI_RECURSE = _core_.UPDATE_UI_RECURSE
  689. UPDATE_UI_FROMIDLE = _core_.UPDATE_UI_FROMIDLE
  690.  
  691. class Object(object):
  692.     '''
  693.     The base class for most wx objects, although in wxPython not
  694.     much functionality is needed nor exposed.
  695.     '''
  696.     
  697.     def __init__(self):
  698.         raise RuntimeError, 'No constructor defined'
  699.  
  700.     
  701.     def __repr__(self):
  702.         return '<%s.%s; proxy of C++ wxObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  703.  
  704.     
  705.     def GetClassName(*args, **kwargs):
  706.         '''
  707.         GetClassName(self) -> String
  708.  
  709.         Returns the class name of the C++ class using wxRTTI.
  710.         '''
  711.         return _core_.Object_GetClassName(*args, **kwargs)
  712.  
  713.     
  714.     def Destroy(*args, **kwargs):
  715.         '''
  716.         Destroy(self)
  717.  
  718.         Deletes the C++ object this Python object is a proxy for.
  719.         '''
  720.         return _core_.Object_Destroy(*args, **kwargs)
  721.  
  722.  
  723.  
  724. class ObjectPtr(Object):
  725.     
  726.     def __init__(self, this):
  727.         self.this = this
  728.         if not hasattr(self, 'thisown'):
  729.             self.thisown = 0
  730.         
  731.         self.__class__ = Object
  732.  
  733.  
  734. _core_.Object_swigregister(ObjectPtr)
  735. _wxPySetDictionary = _core_._wxPySetDictionary
  736. _wxPyFixStockObjects = _core_._wxPyFixStockObjects
  737. cvar = _core_.cvar
  738. EmptyString = cvar.EmptyString
  739. BITMAP_TYPE_INVALID = _core_.BITMAP_TYPE_INVALID
  740. BITMAP_TYPE_BMP = _core_.BITMAP_TYPE_BMP
  741. BITMAP_TYPE_ICO = _core_.BITMAP_TYPE_ICO
  742. BITMAP_TYPE_CUR = _core_.BITMAP_TYPE_CUR
  743. BITMAP_TYPE_XBM = _core_.BITMAP_TYPE_XBM
  744. BITMAP_TYPE_XBM_DATA = _core_.BITMAP_TYPE_XBM_DATA
  745. BITMAP_TYPE_XPM = _core_.BITMAP_TYPE_XPM
  746. BITMAP_TYPE_XPM_DATA = _core_.BITMAP_TYPE_XPM_DATA
  747. BITMAP_TYPE_TIF = _core_.BITMAP_TYPE_TIF
  748. BITMAP_TYPE_GIF = _core_.BITMAP_TYPE_GIF
  749. BITMAP_TYPE_PNG = _core_.BITMAP_TYPE_PNG
  750. BITMAP_TYPE_JPEG = _core_.BITMAP_TYPE_JPEG
  751. BITMAP_TYPE_PNM = _core_.BITMAP_TYPE_PNM
  752. BITMAP_TYPE_PCX = _core_.BITMAP_TYPE_PCX
  753. BITMAP_TYPE_PICT = _core_.BITMAP_TYPE_PICT
  754. BITMAP_TYPE_ICON = _core_.BITMAP_TYPE_ICON
  755. BITMAP_TYPE_ANI = _core_.BITMAP_TYPE_ANI
  756. BITMAP_TYPE_IFF = _core_.BITMAP_TYPE_IFF
  757. BITMAP_TYPE_MACCURSOR = _core_.BITMAP_TYPE_MACCURSOR
  758. BITMAP_TYPE_ANY = _core_.BITMAP_TYPE_ANY
  759. CURSOR_NONE = _core_.CURSOR_NONE
  760. CURSOR_ARROW = _core_.CURSOR_ARROW
  761. CURSOR_RIGHT_ARROW = _core_.CURSOR_RIGHT_ARROW
  762. CURSOR_BULLSEYE = _core_.CURSOR_BULLSEYE
  763. CURSOR_CHAR = _core_.CURSOR_CHAR
  764. CURSOR_CROSS = _core_.CURSOR_CROSS
  765. CURSOR_HAND = _core_.CURSOR_HAND
  766. CURSOR_IBEAM = _core_.CURSOR_IBEAM
  767. CURSOR_LEFT_BUTTON = _core_.CURSOR_LEFT_BUTTON
  768. CURSOR_MAGNIFIER = _core_.CURSOR_MAGNIFIER
  769. CURSOR_MIDDLE_BUTTON = _core_.CURSOR_MIDDLE_BUTTON
  770. CURSOR_NO_ENTRY = _core_.CURSOR_NO_ENTRY
  771. CURSOR_PAINT_BRUSH = _core_.CURSOR_PAINT_BRUSH
  772. CURSOR_PENCIL = _core_.CURSOR_PENCIL
  773. CURSOR_POINT_LEFT = _core_.CURSOR_POINT_LEFT
  774. CURSOR_POINT_RIGHT = _core_.CURSOR_POINT_RIGHT
  775. CURSOR_QUESTION_ARROW = _core_.CURSOR_QUESTION_ARROW
  776. CURSOR_RIGHT_BUTTON = _core_.CURSOR_RIGHT_BUTTON
  777. CURSOR_SIZENESW = _core_.CURSOR_SIZENESW
  778. CURSOR_SIZENS = _core_.CURSOR_SIZENS
  779. CURSOR_SIZENWSE = _core_.CURSOR_SIZENWSE
  780. CURSOR_SIZEWE = _core_.CURSOR_SIZEWE
  781. CURSOR_SIZING = _core_.CURSOR_SIZING
  782. CURSOR_SPRAYCAN = _core_.CURSOR_SPRAYCAN
  783. CURSOR_WAIT = _core_.CURSOR_WAIT
  784. CURSOR_WATCH = _core_.CURSOR_WATCH
  785. CURSOR_BLANK = _core_.CURSOR_BLANK
  786. CURSOR_DEFAULT = _core_.CURSOR_DEFAULT
  787. CURSOR_COPY_ARROW = _core_.CURSOR_COPY_ARROW
  788. CURSOR_ARROWWAIT = _core_.CURSOR_ARROWWAIT
  789. CURSOR_MAX = _core_.CURSOR_MAX
  790.  
  791. class Size(object):
  792.     '''
  793.     wx.Size is a useful data structure used to represent the size of
  794.     something.  It simply contains integer width and height
  795.     properties.  In most places in wxPython where a wx.Size is
  796.     expected a (width, height) tuple can be used instead.
  797.     '''
  798.     
  799.     def __repr__(self):
  800.         return '<%s.%s; proxy of C++ wxSize instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  801.  
  802.     width = property(_core_.Size_width_get, _core_.Size_width_set)
  803.     height = property(_core_.Size_height_get, _core_.Size_height_set)
  804.     x = width
  805.     y = height
  806.     
  807.     def __init__(self, *args, **kwargs):
  808.         '''
  809.         __init__(self, int w=0, int h=0) -> Size
  810.  
  811.         Creates a size object.
  812.         '''
  813.         newobj = _core_.new_Size(*args, **kwargs)
  814.         self.this = newobj.this
  815.         self.thisown = 1
  816.         del newobj.thisown
  817.  
  818.     
  819.     def __del__(self, destroy = _core_.delete_Size):
  820.         '''__del__(self)'''
  821.         
  822.         try:
  823.             if self.thisown:
  824.                 destroy(self)
  825.         except:
  826.             pass
  827.  
  828.  
  829.     
  830.     def __eq__(*args, **kwargs):
  831.         '''
  832.         __eq__(self, PyObject other) -> bool
  833.  
  834.         Test for equality of wx.Size objects.
  835.         '''
  836.         return _core_.Size___eq__(*args, **kwargs)
  837.  
  838.     
  839.     def __ne__(*args, **kwargs):
  840.         '''
  841.         __ne__(self, PyObject other) -> bool
  842.  
  843.         Test for inequality of wx.Size objects.
  844.         '''
  845.         return _core_.Size___ne__(*args, **kwargs)
  846.  
  847.     
  848.     def __add__(*args, **kwargs):
  849.         """
  850.         __add__(self, Size sz) -> Size
  851.  
  852.         Add sz's proprties to this and return the result.
  853.         """
  854.         return _core_.Size___add__(*args, **kwargs)
  855.  
  856.     
  857.     def __sub__(*args, **kwargs):
  858.         """
  859.         __sub__(self, Size sz) -> Size
  860.  
  861.         Subtract sz's properties from this and return the result.
  862.         """
  863.         return _core_.Size___sub__(*args, **kwargs)
  864.  
  865.     
  866.     def IncTo(*args, **kwargs):
  867.         '''
  868.         IncTo(self, Size sz)
  869.  
  870.         Increments this object so that both of its dimensions are not less
  871.         than the corresponding dimensions of the size.
  872.         '''
  873.         return _core_.Size_IncTo(*args, **kwargs)
  874.  
  875.     
  876.     def DecTo(*args, **kwargs):
  877.         '''
  878.         DecTo(self, Size sz)
  879.  
  880.         Decrements this object so that both of its dimensions are not greater
  881.         than the corresponding dimensions of the size.
  882.         '''
  883.         return _core_.Size_DecTo(*args, **kwargs)
  884.  
  885.     
  886.     def Set(*args, **kwargs):
  887.         '''
  888.         Set(self, int w, int h)
  889.  
  890.         Set both width and height.
  891.         '''
  892.         return _core_.Size_Set(*args, **kwargs)
  893.  
  894.     
  895.     def SetWidth(*args, **kwargs):
  896.         '''SetWidth(self, int w)'''
  897.         return _core_.Size_SetWidth(*args, **kwargs)
  898.  
  899.     
  900.     def SetHeight(*args, **kwargs):
  901.         '''SetHeight(self, int h)'''
  902.         return _core_.Size_SetHeight(*args, **kwargs)
  903.  
  904.     
  905.     def GetWidth(*args, **kwargs):
  906.         '''GetWidth(self) -> int'''
  907.         return _core_.Size_GetWidth(*args, **kwargs)
  908.  
  909.     
  910.     def GetHeight(*args, **kwargs):
  911.         '''GetHeight(self) -> int'''
  912.         return _core_.Size_GetHeight(*args, **kwargs)
  913.  
  914.     
  915.     def IsFullySpecified(*args, **kwargs):
  916.         '''
  917.         IsFullySpecified(self) -> bool
  918.  
  919.         Returns True if both components of the size are non-default values.
  920.         '''
  921.         return _core_.Size_IsFullySpecified(*args, **kwargs)
  922.  
  923.     
  924.     def SetDefaults(*args, **kwargs):
  925.         '''
  926.         SetDefaults(self, Size size)
  927.  
  928.         Combine this size with the other one replacing the default components
  929.         of this object (i.e. equal to -1) with those of the other.
  930.         '''
  931.         return _core_.Size_SetDefaults(*args, **kwargs)
  932.  
  933.     
  934.     def Get(*args, **kwargs):
  935.         '''
  936.         Get() -> (width,height)
  937.  
  938.         Returns the width and height properties as a tuple.
  939.         '''
  940.         return _core_.Size_Get(*args, **kwargs)
  941.  
  942.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  943.     
  944.     def __str__(self):
  945.         return str(self.Get())
  946.  
  947.     
  948.     def __repr__(self):
  949.         return 'wx.Size' + str(self.Get())
  950.  
  951.     
  952.     def __len__(self):
  953.         return len(self.Get())
  954.  
  955.     
  956.     def __getitem__(self, index):
  957.         return self.Get()[index]
  958.  
  959.     
  960.     def __setitem__(self, index, val):
  961.         if index == 0:
  962.             self.width = val
  963.         elif index == 1:
  964.             self.height = val
  965.         else:
  966.             raise IndexError
  967.  
  968.     
  969.     def __nonzero__(self):
  970.         return self.Get() != (0, 0)
  971.  
  972.     __safe_for_unpickling__ = True
  973.     
  974.     def __reduce__(self):
  975.         return (wx.Size, self.Get())
  976.  
  977.  
  978.  
  979. class SizePtr(Size):
  980.     
  981.     def __init__(self, this):
  982.         self.this = this
  983.         if not hasattr(self, 'thisown'):
  984.             self.thisown = 0
  985.         
  986.         self.__class__ = Size
  987.  
  988.  
  989. _core_.Size_swigregister(SizePtr)
  990.  
  991. class RealPoint(object):
  992.     '''
  993.     A data structure for representing a point or position with floating
  994.     point x and y properties.  In wxPython most places that expect a
  995.     wx.RealPoint can also accept a (x,y) tuple.
  996.     '''
  997.     
  998.     def __repr__(self):
  999.         return '<%s.%s; proxy of C++ wxRealPoint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1000.  
  1001.     x = property(_core_.RealPoint_x_get, _core_.RealPoint_x_set)
  1002.     y = property(_core_.RealPoint_y_get, _core_.RealPoint_y_set)
  1003.     
  1004.     def __init__(self, *args, **kwargs):
  1005.         '''
  1006.         __init__(self, double x=0.0, double y=0.0) -> RealPoint
  1007.  
  1008.         Create a wx.RealPoint object
  1009.         '''
  1010.         newobj = _core_.new_RealPoint(*args, **kwargs)
  1011.         self.this = newobj.this
  1012.         self.thisown = 1
  1013.         del newobj.thisown
  1014.  
  1015.     
  1016.     def __del__(self, destroy = _core_.delete_RealPoint):
  1017.         '''__del__(self)'''
  1018.         
  1019.         try:
  1020.             if self.thisown:
  1021.                 destroy(self)
  1022.         except:
  1023.             pass
  1024.  
  1025.  
  1026.     
  1027.     def __eq__(*args, **kwargs):
  1028.         '''
  1029.         __eq__(self, PyObject other) -> bool
  1030.  
  1031.         Test for equality of wx.RealPoint objects.
  1032.         '''
  1033.         return _core_.RealPoint___eq__(*args, **kwargs)
  1034.  
  1035.     
  1036.     def __ne__(*args, **kwargs):
  1037.         '''
  1038.         __ne__(self, PyObject other) -> bool
  1039.  
  1040.         Test for inequality of wx.RealPoint objects.
  1041.         '''
  1042.         return _core_.RealPoint___ne__(*args, **kwargs)
  1043.  
  1044.     
  1045.     def __add__(*args, **kwargs):
  1046.         """
  1047.         __add__(self, RealPoint pt) -> RealPoint
  1048.  
  1049.         Add pt's proprties to this and return the result.
  1050.         """
  1051.         return _core_.RealPoint___add__(*args, **kwargs)
  1052.  
  1053.     
  1054.     def __sub__(*args, **kwargs):
  1055.         """
  1056.         __sub__(self, RealPoint pt) -> RealPoint
  1057.  
  1058.         Subtract pt's proprties from this and return the result
  1059.         """
  1060.         return _core_.RealPoint___sub__(*args, **kwargs)
  1061.  
  1062.     
  1063.     def Set(*args, **kwargs):
  1064.         '''
  1065.         Set(self, double x, double y)
  1066.  
  1067.         Set both the x and y properties
  1068.         '''
  1069.         return _core_.RealPoint_Set(*args, **kwargs)
  1070.  
  1071.     
  1072.     def Get(*args, **kwargs):
  1073.         '''
  1074.         Get() -> (x,y)
  1075.  
  1076.         Return the x and y properties as a tuple. 
  1077.         '''
  1078.         return _core_.RealPoint_Get(*args, **kwargs)
  1079.  
  1080.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  1081.     
  1082.     def __str__(self):
  1083.         return str(self.Get())
  1084.  
  1085.     
  1086.     def __repr__(self):
  1087.         return 'wx.RealPoint' + str(self.Get())
  1088.  
  1089.     
  1090.     def __len__(self):
  1091.         return len(self.Get())
  1092.  
  1093.     
  1094.     def __getitem__(self, index):
  1095.         return self.Get()[index]
  1096.  
  1097.     
  1098.     def __setitem__(self, index, val):
  1099.         if index == 0:
  1100.             self.x = val
  1101.         elif index == 1:
  1102.             self.y = val
  1103.         else:
  1104.             raise IndexError
  1105.  
  1106.     
  1107.     def __nonzero__(self):
  1108.         return self.Get() != (0.0, 0.0)
  1109.  
  1110.     __safe_for_unpickling__ = True
  1111.     
  1112.     def __reduce__(self):
  1113.         return (wx.RealPoint, self.Get())
  1114.  
  1115.  
  1116.  
  1117. class RealPointPtr(RealPoint):
  1118.     
  1119.     def __init__(self, this):
  1120.         self.this = this
  1121.         if not hasattr(self, 'thisown'):
  1122.             self.thisown = 0
  1123.         
  1124.         self.__class__ = RealPoint
  1125.  
  1126.  
  1127. _core_.RealPoint_swigregister(RealPointPtr)
  1128.  
  1129. class Point(object):
  1130.     '''
  1131.     A data structure for representing a point or position with integer x
  1132.     and y properties.  Most places in wxPython that expect a wx.Point can
  1133.     also accept a (x,y) tuple.
  1134.     '''
  1135.     
  1136.     def __repr__(self):
  1137.         return '<%s.%s; proxy of C++ wxPoint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1138.  
  1139.     x = property(_core_.Point_x_get, _core_.Point_x_set)
  1140.     y = property(_core_.Point_y_get, _core_.Point_y_set)
  1141.     
  1142.     def __init__(self, *args, **kwargs):
  1143.         '''
  1144.         __init__(self, int x=0, int y=0) -> Point
  1145.  
  1146.         Create a wx.Point object
  1147.         '''
  1148.         newobj = _core_.new_Point(*args, **kwargs)
  1149.         self.this = newobj.this
  1150.         self.thisown = 1
  1151.         del newobj.thisown
  1152.  
  1153.     
  1154.     def __del__(self, destroy = _core_.delete_Point):
  1155.         '''__del__(self)'''
  1156.         
  1157.         try:
  1158.             if self.thisown:
  1159.                 destroy(self)
  1160.         except:
  1161.             pass
  1162.  
  1163.  
  1164.     
  1165.     def __eq__(*args, **kwargs):
  1166.         '''
  1167.         __eq__(self, PyObject other) -> bool
  1168.  
  1169.         Test for equality of wx.Point objects.
  1170.         '''
  1171.         return _core_.Point___eq__(*args, **kwargs)
  1172.  
  1173.     
  1174.     def __ne__(*args, **kwargs):
  1175.         '''
  1176.         __ne__(self, PyObject other) -> bool
  1177.  
  1178.         Test for inequality of wx.Point objects.
  1179.         '''
  1180.         return _core_.Point___ne__(*args, **kwargs)
  1181.  
  1182.     
  1183.     def __add__(*args, **kwargs):
  1184.         """
  1185.         __add__(self, Point pt) -> Point
  1186.  
  1187.         Add pt's proprties to this and return the result.
  1188.         """
  1189.         return _core_.Point___add__(*args, **kwargs)
  1190.  
  1191.     
  1192.     def __sub__(*args, **kwargs):
  1193.         """
  1194.         __sub__(self, Point pt) -> Point
  1195.  
  1196.         Subtract pt's proprties from this and return the result
  1197.         """
  1198.         return _core_.Point___sub__(*args, **kwargs)
  1199.  
  1200.     
  1201.     def __iadd__(*args, **kwargs):
  1202.         '''
  1203.         __iadd__(self, Point pt) -> Point
  1204.  
  1205.         Add pt to this object.
  1206.         '''
  1207.         return _core_.Point___iadd__(*args, **kwargs)
  1208.  
  1209.     
  1210.     def __isub__(*args, **kwargs):
  1211.         '''
  1212.         __isub__(self, Point pt) -> Point
  1213.  
  1214.         Subtract pt from this object.
  1215.         '''
  1216.         return _core_.Point___isub__(*args, **kwargs)
  1217.  
  1218.     
  1219.     def Set(*args, **kwargs):
  1220.         '''
  1221.         Set(self, long x, long y)
  1222.  
  1223.         Set both the x and y properties
  1224.         '''
  1225.         return _core_.Point_Set(*args, **kwargs)
  1226.  
  1227.     
  1228.     def Get(*args, **kwargs):
  1229.         '''
  1230.         Get() -> (x,y)
  1231.  
  1232.         Return the x and y properties as a tuple. 
  1233.         '''
  1234.         return _core_.Point_Get(*args, **kwargs)
  1235.  
  1236.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  1237.     
  1238.     def __str__(self):
  1239.         return str(self.Get())
  1240.  
  1241.     
  1242.     def __repr__(self):
  1243.         return 'wx.Point' + str(self.Get())
  1244.  
  1245.     
  1246.     def __len__(self):
  1247.         return len(self.Get())
  1248.  
  1249.     
  1250.     def __getitem__(self, index):
  1251.         return self.Get()[index]
  1252.  
  1253.     
  1254.     def __setitem__(self, index, val):
  1255.         if index == 0:
  1256.             self.x = val
  1257.         elif index == 1:
  1258.             self.y = val
  1259.         else:
  1260.             raise IndexError
  1261.  
  1262.     
  1263.     def __nonzero__(self):
  1264.         return self.Get() != (0, 0)
  1265.  
  1266.     __safe_for_unpickling__ = True
  1267.     
  1268.     def __reduce__(self):
  1269.         return (wx.Point, self.Get())
  1270.  
  1271.  
  1272.  
  1273. class PointPtr(Point):
  1274.     
  1275.     def __init__(self, this):
  1276.         self.this = this
  1277.         if not hasattr(self, 'thisown'):
  1278.             self.thisown = 0
  1279.         
  1280.         self.__class__ = Point
  1281.  
  1282.  
  1283. _core_.Point_swigregister(PointPtr)
  1284.  
  1285. class Rect(object):
  1286.     '''
  1287.     A class for representing and manipulating rectangles.  It has x, y,
  1288.     width and height properties.  In wxPython most palces that expect a
  1289.     wx.Rect can also accept a (x,y,width,height) tuple.
  1290.     '''
  1291.     
  1292.     def __repr__(self):
  1293.         return '<%s.%s; proxy of C++ wxRect instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1294.  
  1295.     
  1296.     def __init__(self, *args, **kwargs):
  1297.         '''
  1298.         __init__(self, int x=0, int y=0, int width=0, int height=0) -> Rect
  1299.  
  1300.         Create a new Rect object.
  1301.         '''
  1302.         newobj = _core_.new_Rect(*args, **kwargs)
  1303.         self.this = newobj.this
  1304.         self.thisown = 1
  1305.         del newobj.thisown
  1306.  
  1307.     
  1308.     def __del__(self, destroy = _core_.delete_Rect):
  1309.         '''__del__(self)'''
  1310.         
  1311.         try:
  1312.             if self.thisown:
  1313.                 destroy(self)
  1314.         except:
  1315.             pass
  1316.  
  1317.  
  1318.     
  1319.     def GetX(*args, **kwargs):
  1320.         '''GetX(self) -> int'''
  1321.         return _core_.Rect_GetX(*args, **kwargs)
  1322.  
  1323.     
  1324.     def SetX(*args, **kwargs):
  1325.         '''SetX(self, int x)'''
  1326.         return _core_.Rect_SetX(*args, **kwargs)
  1327.  
  1328.     
  1329.     def GetY(*args, **kwargs):
  1330.         '''GetY(self) -> int'''
  1331.         return _core_.Rect_GetY(*args, **kwargs)
  1332.  
  1333.     
  1334.     def SetY(*args, **kwargs):
  1335.         '''SetY(self, int y)'''
  1336.         return _core_.Rect_SetY(*args, **kwargs)
  1337.  
  1338.     
  1339.     def GetWidth(*args, **kwargs):
  1340.         '''GetWidth(self) -> int'''
  1341.         return _core_.Rect_GetWidth(*args, **kwargs)
  1342.  
  1343.     
  1344.     def SetWidth(*args, **kwargs):
  1345.         '''SetWidth(self, int w)'''
  1346.         return _core_.Rect_SetWidth(*args, **kwargs)
  1347.  
  1348.     
  1349.     def GetHeight(*args, **kwargs):
  1350.         '''GetHeight(self) -> int'''
  1351.         return _core_.Rect_GetHeight(*args, **kwargs)
  1352.  
  1353.     
  1354.     def SetHeight(*args, **kwargs):
  1355.         '''SetHeight(self, int h)'''
  1356.         return _core_.Rect_SetHeight(*args, **kwargs)
  1357.  
  1358.     
  1359.     def GetPosition(*args, **kwargs):
  1360.         '''GetPosition(self) -> Point'''
  1361.         return _core_.Rect_GetPosition(*args, **kwargs)
  1362.  
  1363.     
  1364.     def SetPosition(*args, **kwargs):
  1365.         '''SetPosition(self, Point p)'''
  1366.         return _core_.Rect_SetPosition(*args, **kwargs)
  1367.  
  1368.     
  1369.     def GetSize(*args, **kwargs):
  1370.         '''GetSize(self) -> Size'''
  1371.         return _core_.Rect_GetSize(*args, **kwargs)
  1372.  
  1373.     
  1374.     def SetSize(*args, **kwargs):
  1375.         '''SetSize(self, Size s)'''
  1376.         return _core_.Rect_SetSize(*args, **kwargs)
  1377.  
  1378.     
  1379.     def IsEmpty(*args, **kwargs):
  1380.         '''IsEmpty(self) -> bool'''
  1381.         return _core_.Rect_IsEmpty(*args, **kwargs)
  1382.  
  1383.     
  1384.     def GetTopLeft(*args, **kwargs):
  1385.         '''GetTopLeft(self) -> Point'''
  1386.         return _core_.Rect_GetTopLeft(*args, **kwargs)
  1387.  
  1388.     
  1389.     def SetTopLeft(*args, **kwargs):
  1390.         '''SetTopLeft(self, Point p)'''
  1391.         return _core_.Rect_SetTopLeft(*args, **kwargs)
  1392.  
  1393.     
  1394.     def GetBottomRight(*args, **kwargs):
  1395.         '''GetBottomRight(self) -> Point'''
  1396.         return _core_.Rect_GetBottomRight(*args, **kwargs)
  1397.  
  1398.     
  1399.     def SetBottomRight(*args, **kwargs):
  1400.         '''SetBottomRight(self, Point p)'''
  1401.         return _core_.Rect_SetBottomRight(*args, **kwargs)
  1402.  
  1403.     
  1404.     def GetLeft(*args, **kwargs):
  1405.         '''GetLeft(self) -> int'''
  1406.         return _core_.Rect_GetLeft(*args, **kwargs)
  1407.  
  1408.     
  1409.     def GetTop(*args, **kwargs):
  1410.         '''GetTop(self) -> int'''
  1411.         return _core_.Rect_GetTop(*args, **kwargs)
  1412.  
  1413.     
  1414.     def GetBottom(*args, **kwargs):
  1415.         '''GetBottom(self) -> int'''
  1416.         return _core_.Rect_GetBottom(*args, **kwargs)
  1417.  
  1418.     
  1419.     def GetRight(*args, **kwargs):
  1420.         '''GetRight(self) -> int'''
  1421.         return _core_.Rect_GetRight(*args, **kwargs)
  1422.  
  1423.     
  1424.     def SetLeft(*args, **kwargs):
  1425.         '''SetLeft(self, int left)'''
  1426.         return _core_.Rect_SetLeft(*args, **kwargs)
  1427.  
  1428.     
  1429.     def SetRight(*args, **kwargs):
  1430.         '''SetRight(self, int right)'''
  1431.         return _core_.Rect_SetRight(*args, **kwargs)
  1432.  
  1433.     
  1434.     def SetTop(*args, **kwargs):
  1435.         '''SetTop(self, int top)'''
  1436.         return _core_.Rect_SetTop(*args, **kwargs)
  1437.  
  1438.     
  1439.     def SetBottom(*args, **kwargs):
  1440.         '''SetBottom(self, int bottom)'''
  1441.         return _core_.Rect_SetBottom(*args, **kwargs)
  1442.  
  1443.     position = property(GetPosition, SetPosition)
  1444.     size = property(GetSize, SetSize)
  1445.     left = property(GetLeft, SetLeft)
  1446.     right = property(GetRight, SetRight)
  1447.     top = property(GetTop, SetTop)
  1448.     bottom = property(GetBottom, SetBottom)
  1449.     
  1450.     def Inflate(*args, **kwargs):
  1451.         '''
  1452.         Inflate(self, int dx, int dy) -> Rect
  1453.  
  1454.         Increases the size of the rectangle.
  1455.  
  1456.         The left border is moved farther left and the right border is moved
  1457.         farther right by ``dx``. The upper border is moved farther up and the
  1458.         bottom border is moved farther down by ``dy``. (Note the the width and
  1459.         height of the rectangle thus change by ``2*dx`` and ``2*dy``,
  1460.         respectively.) If one or both of ``dx`` and ``dy`` are negative, the
  1461.         opposite happens: the rectangle size decreases in the respective
  1462.         direction.
  1463.  
  1464.         The change is made to the rectangle inplace, if instead you need a
  1465.         copy that is inflated, preserving the original then make the copy
  1466.         first::
  1467.  
  1468.             copy = wx.Rect(*original)
  1469.             copy.Inflate(10,15)
  1470.  
  1471.  
  1472.         '''
  1473.         return _core_.Rect_Inflate(*args, **kwargs)
  1474.  
  1475.     
  1476.     def Deflate(*args, **kwargs):
  1477.         '''
  1478.         Deflate(self, int dx, int dy) -> Rect
  1479.  
  1480.         Decrease the rectangle size. This method is the opposite of `Inflate`
  1481.         in that Deflate(a,b) is equivalent to Inflate(-a,-b).  Please refer to
  1482.         `Inflate` for a full description.
  1483.         '''
  1484.         return _core_.Rect_Deflate(*args, **kwargs)
  1485.  
  1486.     
  1487.     def OffsetXY(*args, **kwargs):
  1488.         '''
  1489.         OffsetXY(self, int dx, int dy)
  1490.  
  1491.         Moves the rectangle by the specified offset. If dx is positive, the
  1492.         rectangle is moved to the right, if dy is positive, it is moved to the
  1493.         bottom, otherwise it is moved to the left or top respectively.
  1494.         '''
  1495.         return _core_.Rect_OffsetXY(*args, **kwargs)
  1496.  
  1497.     
  1498.     def Offset(*args, **kwargs):
  1499.         '''
  1500.         Offset(self, Point pt)
  1501.  
  1502.         Same as OffsetXY but uses dx,dy from Point
  1503.         '''
  1504.         return _core_.Rect_Offset(*args, **kwargs)
  1505.  
  1506.     
  1507.     def Intersect(*args, **kwargs):
  1508.         '''
  1509.         Intersect(self, Rect rect) -> Rect
  1510.  
  1511.         Returns the intersectsion of this rectangle and rect.
  1512.         '''
  1513.         return _core_.Rect_Intersect(*args, **kwargs)
  1514.  
  1515.     
  1516.     def Union(*args, **kwargs):
  1517.         '''
  1518.         Union(self, Rect rect) -> Rect
  1519.  
  1520.         Returns the union of this rectangle and rect.
  1521.         '''
  1522.         return _core_.Rect_Union(*args, **kwargs)
  1523.  
  1524.     
  1525.     def __add__(*args, **kwargs):
  1526.         '''
  1527.         __add__(self, Rect rect) -> Rect
  1528.  
  1529.         Add the properties of rect to this rectangle and return the result.
  1530.         '''
  1531.         return _core_.Rect___add__(*args, **kwargs)
  1532.  
  1533.     
  1534.     def __iadd__(*args, **kwargs):
  1535.         '''
  1536.         __iadd__(self, Rect rect) -> Rect
  1537.  
  1538.         Add the properties of rect to this rectangle, updating this rectangle.
  1539.         '''
  1540.         return _core_.Rect___iadd__(*args, **kwargs)
  1541.  
  1542.     
  1543.     def __eq__(*args, **kwargs):
  1544.         '''
  1545.         __eq__(self, PyObject other) -> bool
  1546.  
  1547.         Test for equality of wx.Rect objects.
  1548.         '''
  1549.         return _core_.Rect___eq__(*args, **kwargs)
  1550.  
  1551.     
  1552.     def __ne__(*args, **kwargs):
  1553.         '''
  1554.         __ne__(self, PyObject other) -> bool
  1555.  
  1556.         Test for inequality of wx.Rect objects.
  1557.         '''
  1558.         return _core_.Rect___ne__(*args, **kwargs)
  1559.  
  1560.     
  1561.     def InsideXY(*args, **kwargs):
  1562.         '''
  1563.         InsideXY(self, int x, int y) -> bool
  1564.  
  1565.         Return True if the point is (not strcitly) inside the rect.
  1566.         '''
  1567.         return _core_.Rect_InsideXY(*args, **kwargs)
  1568.  
  1569.     
  1570.     def Inside(*args, **kwargs):
  1571.         '''
  1572.         Inside(self, Point pt) -> bool
  1573.  
  1574.         Return True if the point is (not strcitly) inside the rect.
  1575.         '''
  1576.         return _core_.Rect_Inside(*args, **kwargs)
  1577.  
  1578.     
  1579.     def Intersects(*args, **kwargs):
  1580.         '''
  1581.         Intersects(self, Rect rect) -> bool
  1582.  
  1583.         Returns True if the rectangles have a non empty intersection.
  1584.         '''
  1585.         return _core_.Rect_Intersects(*args, **kwargs)
  1586.  
  1587.     x = property(_core_.Rect_x_get, _core_.Rect_x_set)
  1588.     y = property(_core_.Rect_y_get, _core_.Rect_y_set)
  1589.     width = property(_core_.Rect_width_get, _core_.Rect_width_set)
  1590.     height = property(_core_.Rect_height_get, _core_.Rect_height_set)
  1591.     
  1592.     def Set(*args, **kwargs):
  1593.         '''
  1594.         Set(self, int x=0, int y=0, int width=0, int height=0)
  1595.  
  1596.         Set all rectangle properties.
  1597.         '''
  1598.         return _core_.Rect_Set(*args, **kwargs)
  1599.  
  1600.     
  1601.     def Get(*args, **kwargs):
  1602.         '''
  1603.         Get() -> (x,y,width,height)
  1604.  
  1605.         Return the rectangle properties as a tuple.
  1606.         '''
  1607.         return _core_.Rect_Get(*args, **kwargs)
  1608.  
  1609.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  1610.     
  1611.     def __str__(self):
  1612.         return str(self.Get())
  1613.  
  1614.     
  1615.     def __repr__(self):
  1616.         return 'wx.Rect' + str(self.Get())
  1617.  
  1618.     
  1619.     def __len__(self):
  1620.         return len(self.Get())
  1621.  
  1622.     
  1623.     def __getitem__(self, index):
  1624.         return self.Get()[index]
  1625.  
  1626.     
  1627.     def __setitem__(self, index, val):
  1628.         if index == 0:
  1629.             self.x = val
  1630.         elif index == 1:
  1631.             self.y = val
  1632.         elif index == 2:
  1633.             self.width = val
  1634.         elif index == 3:
  1635.             self.height = val
  1636.         else:
  1637.             raise IndexError
  1638.  
  1639.     
  1640.     def __nonzero__(self):
  1641.         return self.Get() != (0, 0, 0, 0)
  1642.  
  1643.     __safe_for_unpickling__ = True
  1644.     
  1645.     def __reduce__(self):
  1646.         return (wx.Rect, self.Get())
  1647.  
  1648.  
  1649.  
  1650. class RectPtr(Rect):
  1651.     
  1652.     def __init__(self, this):
  1653.         self.this = this
  1654.         if not hasattr(self, 'thisown'):
  1655.             self.thisown = 0
  1656.         
  1657.         self.__class__ = Rect
  1658.  
  1659.  
  1660. _core_.Rect_swigregister(RectPtr)
  1661.  
  1662. def RectPP(*args, **kwargs):
  1663.     '''
  1664.     RectPP(Point topLeft, Point bottomRight) -> Rect
  1665.  
  1666.     Create a new Rect object from Points representing two corners.
  1667.     '''
  1668.     val = _core_.new_RectPP(*args, **kwargs)
  1669.     val.thisown = 1
  1670.     return val
  1671.  
  1672.  
  1673. def RectPS(*args, **kwargs):
  1674.     '''
  1675.     RectPS(Point pos, Size size) -> Rect
  1676.  
  1677.     Create a new Rect from a position and size.
  1678.     '''
  1679.     val = _core_.new_RectPS(*args, **kwargs)
  1680.     val.thisown = 1
  1681.     return val
  1682.  
  1683.  
  1684. def RectS(*args, **kwargs):
  1685.     '''
  1686.     RectS(Size size) -> Rect
  1687.  
  1688.     Create a new Rect from a size only.
  1689.     '''
  1690.     val = _core_.new_RectS(*args, **kwargs)
  1691.     val.thisown = 1
  1692.     return val
  1693.  
  1694.  
  1695. def IntersectRect(*args, **kwargs):
  1696.     '''
  1697.     IntersectRect(Rect r1, Rect r2) -> Rect
  1698.  
  1699.     Calculate and return the intersection of r1 and r2.
  1700.     '''
  1701.     return _core_.IntersectRect(*args, **kwargs)
  1702.  
  1703.  
  1704. class Point2D(object):
  1705.     '''
  1706.     wx.Point2Ds represent a point or a vector in a 2d coordinate system
  1707.     with floating point values.
  1708.     '''
  1709.     
  1710.     def __repr__(self):
  1711.         return '<%s.%s; proxy of C++ wxPoint2D instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1712.  
  1713.     
  1714.     def __init__(self, *args, **kwargs):
  1715.         '''
  1716.         __init__(self, double x=0.0, double y=0.0) -> Point2D
  1717.  
  1718.         Create a w.Point2D object.
  1719.         '''
  1720.         newobj = _core_.new_Point2D(*args, **kwargs)
  1721.         self.this = newobj.this
  1722.         self.thisown = 1
  1723.         del newobj.thisown
  1724.  
  1725.     
  1726.     def GetFloor(*args, **kwargs):
  1727.         '''
  1728.         GetFloor() -> (x,y)
  1729.  
  1730.         Convert to integer
  1731.         '''
  1732.         return _core_.Point2D_GetFloor(*args, **kwargs)
  1733.  
  1734.     
  1735.     def GetRounded(*args, **kwargs):
  1736.         '''
  1737.         GetRounded() -> (x,y)
  1738.  
  1739.         Convert to integer
  1740.         '''
  1741.         return _core_.Point2D_GetRounded(*args, **kwargs)
  1742.  
  1743.     
  1744.     def GetVectorLength(*args, **kwargs):
  1745.         '''GetVectorLength(self) -> double'''
  1746.         return _core_.Point2D_GetVectorLength(*args, **kwargs)
  1747.  
  1748.     
  1749.     def GetVectorAngle(*args, **kwargs):
  1750.         '''GetVectorAngle(self) -> double'''
  1751.         return _core_.Point2D_GetVectorAngle(*args, **kwargs)
  1752.  
  1753.     
  1754.     def SetVectorLength(*args, **kwargs):
  1755.         '''SetVectorLength(self, double length)'''
  1756.         return _core_.Point2D_SetVectorLength(*args, **kwargs)
  1757.  
  1758.     
  1759.     def SetVectorAngle(*args, **kwargs):
  1760.         '''SetVectorAngle(self, double degrees)'''
  1761.         return _core_.Point2D_SetVectorAngle(*args, **kwargs)
  1762.  
  1763.     
  1764.     def SetPolarCoordinates(self, angle, length):
  1765.         self.SetVectorLength(length)
  1766.         self.SetVectorAngle(angle)
  1767.  
  1768.     
  1769.     def Normalize(self):
  1770.         self.SetVectorLength(1.0)
  1771.  
  1772.     
  1773.     def GetDistance(*args, **kwargs):
  1774.         '''GetDistance(self, Point2D pt) -> double'''
  1775.         return _core_.Point2D_GetDistance(*args, **kwargs)
  1776.  
  1777.     
  1778.     def GetDistanceSquare(*args, **kwargs):
  1779.         '''GetDistanceSquare(self, Point2D pt) -> double'''
  1780.         return _core_.Point2D_GetDistanceSquare(*args, **kwargs)
  1781.  
  1782.     
  1783.     def GetDotProduct(*args, **kwargs):
  1784.         '''GetDotProduct(self, Point2D vec) -> double'''
  1785.         return _core_.Point2D_GetDotProduct(*args, **kwargs)
  1786.  
  1787.     
  1788.     def GetCrossProduct(*args, **kwargs):
  1789.         '''GetCrossProduct(self, Point2D vec) -> double'''
  1790.         return _core_.Point2D_GetCrossProduct(*args, **kwargs)
  1791.  
  1792.     
  1793.     def __neg__(*args, **kwargs):
  1794.         '''
  1795.         __neg__(self) -> Point2D
  1796.  
  1797.         the reflection of this point
  1798.         '''
  1799.         return _core_.Point2D___neg__(*args, **kwargs)
  1800.  
  1801.     
  1802.     def __iadd__(*args, **kwargs):
  1803.         '''__iadd__(self, Point2D pt) -> Point2D'''
  1804.         return _core_.Point2D___iadd__(*args, **kwargs)
  1805.  
  1806.     
  1807.     def __isub__(*args, **kwargs):
  1808.         '''__isub__(self, Point2D pt) -> Point2D'''
  1809.         return _core_.Point2D___isub__(*args, **kwargs)
  1810.  
  1811.     
  1812.     def __imul__(*args, **kwargs):
  1813.         '''__imul__(self, Point2D pt) -> Point2D'''
  1814.         return _core_.Point2D___imul__(*args, **kwargs)
  1815.  
  1816.     
  1817.     def __idiv__(*args, **kwargs):
  1818.         '''__idiv__(self, Point2D pt) -> Point2D'''
  1819.         return _core_.Point2D___idiv__(*args, **kwargs)
  1820.  
  1821.     
  1822.     def __eq__(*args, **kwargs):
  1823.         '''
  1824.         __eq__(self, PyObject other) -> bool
  1825.  
  1826.         Test for equality of wx.Point2D objects.
  1827.         '''
  1828.         return _core_.Point2D___eq__(*args, **kwargs)
  1829.  
  1830.     
  1831.     def __ne__(*args, **kwargs):
  1832.         '''
  1833.         __ne__(self, PyObject other) -> bool
  1834.  
  1835.         Test for inequality of wx.Point2D objects.
  1836.         '''
  1837.         return _core_.Point2D___ne__(*args, **kwargs)
  1838.  
  1839.     x = property(_core_.Point2D_x_get, _core_.Point2D_x_set)
  1840.     y = property(_core_.Point2D_y_get, _core_.Point2D_y_set)
  1841.     
  1842.     def Set(*args, **kwargs):
  1843.         '''Set(self, double x=0, double y=0)'''
  1844.         return _core_.Point2D_Set(*args, **kwargs)
  1845.  
  1846.     
  1847.     def Get(*args, **kwargs):
  1848.         '''
  1849.         Get() -> (x,y)
  1850.  
  1851.         Return x and y properties as a tuple.
  1852.         '''
  1853.         return _core_.Point2D_Get(*args, **kwargs)
  1854.  
  1855.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  1856.     
  1857.     def __str__(self):
  1858.         return str(self.Get())
  1859.  
  1860.     
  1861.     def __repr__(self):
  1862.         return 'wx.Point2D' + str(self.Get())
  1863.  
  1864.     
  1865.     def __len__(self):
  1866.         return len(self.Get())
  1867.  
  1868.     
  1869.     def __getitem__(self, index):
  1870.         return self.Get()[index]
  1871.  
  1872.     
  1873.     def __setitem__(self, index, val):
  1874.         if index == 0:
  1875.             self.x = val
  1876.         elif index == 1:
  1877.             self.y = val
  1878.         else:
  1879.             raise IndexError
  1880.  
  1881.     
  1882.     def __nonzero__(self):
  1883.         return self.Get() != (0.0, 0.0)
  1884.  
  1885.     __safe_for_unpickling__ = True
  1886.     
  1887.     def __reduce__(self):
  1888.         return (wx.Point2D, self.Get())
  1889.  
  1890.  
  1891.  
  1892. class Point2DPtr(Point2D):
  1893.     
  1894.     def __init__(self, this):
  1895.         self.this = this
  1896.         if not hasattr(self, 'thisown'):
  1897.             self.thisown = 0
  1898.         
  1899.         self.__class__ = Point2D
  1900.  
  1901.  
  1902. _core_.Point2D_swigregister(Point2DPtr)
  1903.  
  1904. def Point2DCopy(*args, **kwargs):
  1905.     '''
  1906.     Point2DCopy(Point2D pt) -> Point2D
  1907.  
  1908.     Create a w.Point2D object.
  1909.     '''
  1910.     val = _core_.new_Point2DCopy(*args, **kwargs)
  1911.     val.thisown = 1
  1912.     return val
  1913.  
  1914.  
  1915. def Point2DFromPoint(*args, **kwargs):
  1916.     '''
  1917.     Point2DFromPoint(Point pt) -> Point2D
  1918.  
  1919.     Create a w.Point2D object.
  1920.     '''
  1921.     val = _core_.new_Point2DFromPoint(*args, **kwargs)
  1922.     val.thisown = 1
  1923.     return val
  1924.  
  1925. FromStart = _core_.FromStart
  1926. FromCurrent = _core_.FromCurrent
  1927. FromEnd = _core_.FromEnd
  1928.  
  1929. class InputStream(object):
  1930.     '''Proxy of C++ InputStream class'''
  1931.     
  1932.     def __repr__(self):
  1933.         return '<%s.%s; proxy of C++ wxPyInputStream instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1934.  
  1935.     
  1936.     def __init__(self, *args, **kwargs):
  1937.         '''__init__(self, PyObject p) -> InputStream'''
  1938.         newobj = _core_.new_InputStream(*args, **kwargs)
  1939.         self.this = newobj.this
  1940.         self.thisown = 1
  1941.         del newobj.thisown
  1942.  
  1943.     
  1944.     def __del__(self, destroy = _core_.delete_InputStream):
  1945.         '''__del__(self)'''
  1946.         
  1947.         try:
  1948.             if self.thisown:
  1949.                 destroy(self)
  1950.         except:
  1951.             pass
  1952.  
  1953.  
  1954.     
  1955.     def close(*args, **kwargs):
  1956.         '''close(self)'''
  1957.         return _core_.InputStream_close(*args, **kwargs)
  1958.  
  1959.     
  1960.     def flush(*args, **kwargs):
  1961.         '''flush(self)'''
  1962.         return _core_.InputStream_flush(*args, **kwargs)
  1963.  
  1964.     
  1965.     def eof(*args, **kwargs):
  1966.         '''eof(self) -> bool'''
  1967.         return _core_.InputStream_eof(*args, **kwargs)
  1968.  
  1969.     
  1970.     def read(*args, **kwargs):
  1971.         '''read(self, int size=-1) -> PyObject'''
  1972.         return _core_.InputStream_read(*args, **kwargs)
  1973.  
  1974.     
  1975.     def readline(*args, **kwargs):
  1976.         '''readline(self, int size=-1) -> PyObject'''
  1977.         return _core_.InputStream_readline(*args, **kwargs)
  1978.  
  1979.     
  1980.     def readlines(*args, **kwargs):
  1981.         '''readlines(self, int sizehint=-1) -> PyObject'''
  1982.         return _core_.InputStream_readlines(*args, **kwargs)
  1983.  
  1984.     
  1985.     def seek(*args, **kwargs):
  1986.         '''seek(self, int offset, int whence=0)'''
  1987.         return _core_.InputStream_seek(*args, **kwargs)
  1988.  
  1989.     
  1990.     def tell(*args, **kwargs):
  1991.         '''tell(self) -> int'''
  1992.         return _core_.InputStream_tell(*args, **kwargs)
  1993.  
  1994.     
  1995.     def Peek(*args, **kwargs):
  1996.         '''Peek(self) -> char'''
  1997.         return _core_.InputStream_Peek(*args, **kwargs)
  1998.  
  1999.     
  2000.     def GetC(*args, **kwargs):
  2001.         '''GetC(self) -> char'''
  2002.         return _core_.InputStream_GetC(*args, **kwargs)
  2003.  
  2004.     
  2005.     def LastRead(*args, **kwargs):
  2006.         '''LastRead(self) -> size_t'''
  2007.         return _core_.InputStream_LastRead(*args, **kwargs)
  2008.  
  2009.     
  2010.     def CanRead(*args, **kwargs):
  2011.         '''CanRead(self) -> bool'''
  2012.         return _core_.InputStream_CanRead(*args, **kwargs)
  2013.  
  2014.     
  2015.     def Eof(*args, **kwargs):
  2016.         '''Eof(self) -> bool'''
  2017.         return _core_.InputStream_Eof(*args, **kwargs)
  2018.  
  2019.     
  2020.     def Ungetch(*args, **kwargs):
  2021.         '''Ungetch(self, char c) -> bool'''
  2022.         return _core_.InputStream_Ungetch(*args, **kwargs)
  2023.  
  2024.     
  2025.     def SeekI(*args, **kwargs):
  2026.         '''SeekI(self, long pos, int mode=FromStart) -> long'''
  2027.         return _core_.InputStream_SeekI(*args, **kwargs)
  2028.  
  2029.     
  2030.     def TellI(*args, **kwargs):
  2031.         '''TellI(self) -> long'''
  2032.         return _core_.InputStream_TellI(*args, **kwargs)
  2033.  
  2034.  
  2035.  
  2036. class InputStreamPtr(InputStream):
  2037.     
  2038.     def __init__(self, this):
  2039.         self.this = this
  2040.         if not hasattr(self, 'thisown'):
  2041.             self.thisown = 0
  2042.         
  2043.         self.__class__ = InputStream
  2044.  
  2045.  
  2046. _core_.InputStream_swigregister(InputStreamPtr)
  2047. DefaultPosition = cvar.DefaultPosition
  2048. DefaultSize = cvar.DefaultSize
  2049.  
  2050. class OutputStream(object):
  2051.     '''Proxy of C++ OutputStream class'''
  2052.     
  2053.     def __init__(self):
  2054.         raise RuntimeError, 'No constructor defined'
  2055.  
  2056.     
  2057.     def __repr__(self):
  2058.         return '<%s.%s; proxy of C++ wxOutputStream instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2059.  
  2060.     
  2061.     def write(*args, **kwargs):
  2062.         '''write(self, PyObject obj)'''
  2063.         return _core_.OutputStream_write(*args, **kwargs)
  2064.  
  2065.     
  2066.     def LastWrite(*args, **kwargs):
  2067.         '''LastWrite(self) -> size_t'''
  2068.         return _core_.OutputStream_LastWrite(*args, **kwargs)
  2069.  
  2070.  
  2071.  
  2072. class OutputStreamPtr(OutputStream):
  2073.     
  2074.     def __init__(self, this):
  2075.         self.this = this
  2076.         if not hasattr(self, 'thisown'):
  2077.             self.thisown = 0
  2078.         
  2079.         self.__class__ = OutputStream
  2080.  
  2081.  
  2082. _core_.OutputStream_swigregister(OutputStreamPtr)
  2083.  
  2084. class FSFile(Object):
  2085.     '''Proxy of C++ FSFile class'''
  2086.     
  2087.     def __repr__(self):
  2088.         return '<%s.%s; proxy of C++ wxFSFile instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2089.  
  2090.     
  2091.     def __init__(self, *args, **kwargs):
  2092.         '''
  2093.         __init__(self, InputStream stream, String loc, String mimetype, String anchor, 
  2094.             DateTime modif) -> FSFile
  2095.         '''
  2096.         newobj = _core_.new_FSFile(*args, **kwargs)
  2097.         self.this = newobj.this
  2098.         self.thisown = 1
  2099.         del newobj.thisown
  2100.         self.thisown = 0
  2101.  
  2102.     
  2103.     def __del__(self, destroy = _core_.delete_FSFile):
  2104.         '''__del__(self)'''
  2105.         
  2106.         try:
  2107.             if self.thisown:
  2108.                 destroy(self)
  2109.         except:
  2110.             pass
  2111.  
  2112.  
  2113.     
  2114.     def GetStream(*args, **kwargs):
  2115.         '''GetStream(self) -> InputStream'''
  2116.         return _core_.FSFile_GetStream(*args, **kwargs)
  2117.  
  2118.     
  2119.     def GetMimeType(*args, **kwargs):
  2120.         '''GetMimeType(self) -> String'''
  2121.         return _core_.FSFile_GetMimeType(*args, **kwargs)
  2122.  
  2123.     
  2124.     def GetLocation(*args, **kwargs):
  2125.         '''GetLocation(self) -> String'''
  2126.         return _core_.FSFile_GetLocation(*args, **kwargs)
  2127.  
  2128.     
  2129.     def GetAnchor(*args, **kwargs):
  2130.         '''GetAnchor(self) -> String'''
  2131.         return _core_.FSFile_GetAnchor(*args, **kwargs)
  2132.  
  2133.     
  2134.     def GetModificationTime(*args, **kwargs):
  2135.         '''GetModificationTime(self) -> DateTime'''
  2136.         return _core_.FSFile_GetModificationTime(*args, **kwargs)
  2137.  
  2138.  
  2139.  
  2140. class FSFilePtr(FSFile):
  2141.     
  2142.     def __init__(self, this):
  2143.         self.this = this
  2144.         if not hasattr(self, 'thisown'):
  2145.             self.thisown = 0
  2146.         
  2147.         self.__class__ = FSFile
  2148.  
  2149.  
  2150. _core_.FSFile_swigregister(FSFilePtr)
  2151.  
  2152. class CPPFileSystemHandler(object):
  2153.     '''Proxy of C++ CPPFileSystemHandler class'''
  2154.     
  2155.     def __init__(self):
  2156.         raise RuntimeError, 'No constructor defined'
  2157.  
  2158.     
  2159.     def __repr__(self):
  2160.         return '<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2161.  
  2162.  
  2163.  
  2164. class CPPFileSystemHandlerPtr(CPPFileSystemHandler):
  2165.     
  2166.     def __init__(self, this):
  2167.         self.this = this
  2168.         if not hasattr(self, 'thisown'):
  2169.             self.thisown = 0
  2170.         
  2171.         self.__class__ = CPPFileSystemHandler
  2172.  
  2173.  
  2174. _core_.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr)
  2175.  
  2176. class FileSystemHandler(CPPFileSystemHandler):
  2177.     '''Proxy of C++ FileSystemHandler class'''
  2178.     
  2179.     def __repr__(self):
  2180.         return '<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2181.  
  2182.     
  2183.     def __init__(self, *args, **kwargs):
  2184.         '''__init__(self) -> FileSystemHandler'''
  2185.         newobj = _core_.new_FileSystemHandler(*args, **kwargs)
  2186.         self.this = newobj.this
  2187.         self.thisown = 1
  2188.         del newobj.thisown
  2189.         self._setCallbackInfo(self, FileSystemHandler)
  2190.  
  2191.     
  2192.     def _setCallbackInfo(*args, **kwargs):
  2193.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  2194.         return _core_.FileSystemHandler__setCallbackInfo(*args, **kwargs)
  2195.  
  2196.     
  2197.     def CanOpen(*args, **kwargs):
  2198.         '''CanOpen(self, String location) -> bool'''
  2199.         return _core_.FileSystemHandler_CanOpen(*args, **kwargs)
  2200.  
  2201.     
  2202.     def OpenFile(*args, **kwargs):
  2203.         '''OpenFile(self, FileSystem fs, String location) -> FSFile'''
  2204.         return _core_.FileSystemHandler_OpenFile(*args, **kwargs)
  2205.  
  2206.     
  2207.     def FindFirst(*args, **kwargs):
  2208.         '''FindFirst(self, String spec, int flags=0) -> String'''
  2209.         return _core_.FileSystemHandler_FindFirst(*args, **kwargs)
  2210.  
  2211.     
  2212.     def FindNext(*args, **kwargs):
  2213.         '''FindNext(self) -> String'''
  2214.         return _core_.FileSystemHandler_FindNext(*args, **kwargs)
  2215.  
  2216.     
  2217.     def GetProtocol(*args, **kwargs):
  2218.         '''GetProtocol(self, String location) -> String'''
  2219.         return _core_.FileSystemHandler_GetProtocol(*args, **kwargs)
  2220.  
  2221.     
  2222.     def GetLeftLocation(*args, **kwargs):
  2223.         '''GetLeftLocation(self, String location) -> String'''
  2224.         return _core_.FileSystemHandler_GetLeftLocation(*args, **kwargs)
  2225.  
  2226.     
  2227.     def GetAnchor(*args, **kwargs):
  2228.         '''GetAnchor(self, String location) -> String'''
  2229.         return _core_.FileSystemHandler_GetAnchor(*args, **kwargs)
  2230.  
  2231.     
  2232.     def GetRightLocation(*args, **kwargs):
  2233.         '''GetRightLocation(self, String location) -> String'''
  2234.         return _core_.FileSystemHandler_GetRightLocation(*args, **kwargs)
  2235.  
  2236.     
  2237.     def GetMimeTypeFromExt(*args, **kwargs):
  2238.         '''GetMimeTypeFromExt(self, String location) -> String'''
  2239.         return _core_.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs)
  2240.  
  2241.  
  2242.  
  2243. class FileSystemHandlerPtr(FileSystemHandler):
  2244.     
  2245.     def __init__(self, this):
  2246.         self.this = this
  2247.         if not hasattr(self, 'thisown'):
  2248.             self.thisown = 0
  2249.         
  2250.         self.__class__ = FileSystemHandler
  2251.  
  2252.  
  2253. _core_.FileSystemHandler_swigregister(FileSystemHandlerPtr)
  2254.  
  2255. class FileSystem(Object):
  2256.     '''Proxy of C++ FileSystem class'''
  2257.     
  2258.     def __repr__(self):
  2259.         return '<%s.%s; proxy of C++ wxFileSystem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2260.  
  2261.     
  2262.     def __init__(self, *args, **kwargs):
  2263.         '''__init__(self) -> FileSystem'''
  2264.         newobj = _core_.new_FileSystem(*args, **kwargs)
  2265.         self.this = newobj.this
  2266.         self.thisown = 1
  2267.         del newobj.thisown
  2268.  
  2269.     
  2270.     def __del__(self, destroy = _core_.delete_FileSystem):
  2271.         '''__del__(self)'''
  2272.         
  2273.         try:
  2274.             if self.thisown:
  2275.                 destroy(self)
  2276.         except:
  2277.             pass
  2278.  
  2279.  
  2280.     
  2281.     def ChangePathTo(*args, **kwargs):
  2282.         '''ChangePathTo(self, String location, bool is_dir=False)'''
  2283.         return _core_.FileSystem_ChangePathTo(*args, **kwargs)
  2284.  
  2285.     
  2286.     def GetPath(*args, **kwargs):
  2287.         '''GetPath(self) -> String'''
  2288.         return _core_.FileSystem_GetPath(*args, **kwargs)
  2289.  
  2290.     
  2291.     def OpenFile(*args, **kwargs):
  2292.         '''OpenFile(self, String location) -> FSFile'''
  2293.         return _core_.FileSystem_OpenFile(*args, **kwargs)
  2294.  
  2295.     
  2296.     def FindFirst(*args, **kwargs):
  2297.         '''FindFirst(self, String spec, int flags=0) -> String'''
  2298.         return _core_.FileSystem_FindFirst(*args, **kwargs)
  2299.  
  2300.     
  2301.     def FindNext(*args, **kwargs):
  2302.         '''FindNext(self) -> String'''
  2303.         return _core_.FileSystem_FindNext(*args, **kwargs)
  2304.  
  2305.     
  2306.     def AddHandler(*args, **kwargs):
  2307.         '''AddHandler(CPPFileSystemHandler handler)'''
  2308.         return _core_.FileSystem_AddHandler(*args, **kwargs)
  2309.  
  2310.     AddHandler = staticmethod(AddHandler)
  2311.     
  2312.     def CleanUpHandlers(*args, **kwargs):
  2313.         '''CleanUpHandlers()'''
  2314.         return _core_.FileSystem_CleanUpHandlers(*args, **kwargs)
  2315.  
  2316.     CleanUpHandlers = staticmethod(CleanUpHandlers)
  2317.     
  2318.     def FileNameToURL(*args, **kwargs):
  2319.         '''FileNameToURL(String filename) -> String'''
  2320.         return _core_.FileSystem_FileNameToURL(*args, **kwargs)
  2321.  
  2322.     FileNameToURL = staticmethod(FileNameToURL)
  2323.     
  2324.     def URLToFileName(*args, **kwargs):
  2325.         '''URLToFileName(String url) -> String'''
  2326.         return _core_.FileSystem_URLToFileName(*args, **kwargs)
  2327.  
  2328.     URLToFileName = staticmethod(URLToFileName)
  2329.  
  2330.  
  2331. class FileSystemPtr(FileSystem):
  2332.     
  2333.     def __init__(self, this):
  2334.         self.this = this
  2335.         if not hasattr(self, 'thisown'):
  2336.             self.thisown = 0
  2337.         
  2338.         self.__class__ = FileSystem
  2339.  
  2340.  
  2341. _core_.FileSystem_swigregister(FileSystemPtr)
  2342.  
  2343. def FileSystem_AddHandler(*args, **kwargs):
  2344.     '''FileSystem_AddHandler(CPPFileSystemHandler handler)'''
  2345.     return _core_.FileSystem_AddHandler(*args, **kwargs)
  2346.  
  2347.  
  2348. def FileSystem_CleanUpHandlers(*args, **kwargs):
  2349.     '''FileSystem_CleanUpHandlers()'''
  2350.     return _core_.FileSystem_CleanUpHandlers(*args, **kwargs)
  2351.  
  2352.  
  2353. def FileSystem_FileNameToURL(*args, **kwargs):
  2354.     '''FileSystem_FileNameToURL(String filename) -> String'''
  2355.     return _core_.FileSystem_FileNameToURL(*args, **kwargs)
  2356.  
  2357.  
  2358. def FileSystem_URLToFileName(*args, **kwargs):
  2359.     '''FileSystem_URLToFileName(String url) -> String'''
  2360.     return _core_.FileSystem_URLToFileName(*args, **kwargs)
  2361.  
  2362.  
  2363. class InternetFSHandler(CPPFileSystemHandler):
  2364.     '''Proxy of C++ InternetFSHandler class'''
  2365.     
  2366.     def __repr__(self):
  2367.         return '<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2368.  
  2369.     
  2370.     def __init__(self, *args, **kwargs):
  2371.         '''__init__(self) -> InternetFSHandler'''
  2372.         newobj = _core_.new_InternetFSHandler(*args, **kwargs)
  2373.         self.this = newobj.this
  2374.         self.thisown = 1
  2375.         del newobj.thisown
  2376.  
  2377.     
  2378.     def CanOpen(*args, **kwargs):
  2379.         '''CanOpen(self, String location) -> bool'''
  2380.         return _core_.InternetFSHandler_CanOpen(*args, **kwargs)
  2381.  
  2382.     
  2383.     def OpenFile(*args, **kwargs):
  2384.         '''OpenFile(self, FileSystem fs, String location) -> FSFile'''
  2385.         return _core_.InternetFSHandler_OpenFile(*args, **kwargs)
  2386.  
  2387.  
  2388.  
  2389. class InternetFSHandlerPtr(InternetFSHandler):
  2390.     
  2391.     def __init__(self, this):
  2392.         self.this = this
  2393.         if not hasattr(self, 'thisown'):
  2394.             self.thisown = 0
  2395.         
  2396.         self.__class__ = InternetFSHandler
  2397.  
  2398.  
  2399. _core_.InternetFSHandler_swigregister(InternetFSHandlerPtr)
  2400.  
  2401. class ZipFSHandler(CPPFileSystemHandler):
  2402.     '''Proxy of C++ ZipFSHandler class'''
  2403.     
  2404.     def __repr__(self):
  2405.         return '<%s.%s; proxy of C++ wxZipFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2406.  
  2407.     
  2408.     def __init__(self, *args, **kwargs):
  2409.         '''__init__(self) -> ZipFSHandler'''
  2410.         newobj = _core_.new_ZipFSHandler(*args, **kwargs)
  2411.         self.this = newobj.this
  2412.         self.thisown = 1
  2413.         del newobj.thisown
  2414.  
  2415.     
  2416.     def CanOpen(*args, **kwargs):
  2417.         '''CanOpen(self, String location) -> bool'''
  2418.         return _core_.ZipFSHandler_CanOpen(*args, **kwargs)
  2419.  
  2420.     
  2421.     def OpenFile(*args, **kwargs):
  2422.         '''OpenFile(self, FileSystem fs, String location) -> FSFile'''
  2423.         return _core_.ZipFSHandler_OpenFile(*args, **kwargs)
  2424.  
  2425.     
  2426.     def FindFirst(*args, **kwargs):
  2427.         '''FindFirst(self, String spec, int flags=0) -> String'''
  2428.         return _core_.ZipFSHandler_FindFirst(*args, **kwargs)
  2429.  
  2430.     
  2431.     def FindNext(*args, **kwargs):
  2432.         '''FindNext(self) -> String'''
  2433.         return _core_.ZipFSHandler_FindNext(*args, **kwargs)
  2434.  
  2435.  
  2436.  
  2437. class ZipFSHandlerPtr(ZipFSHandler):
  2438.     
  2439.     def __init__(self, this):
  2440.         self.this = this
  2441.         if not hasattr(self, 'thisown'):
  2442.             self.thisown = 0
  2443.         
  2444.         self.__class__ = ZipFSHandler
  2445.  
  2446.  
  2447. _core_.ZipFSHandler_swigregister(ZipFSHandlerPtr)
  2448.  
  2449. def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs):
  2450.     '''__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)'''
  2451.     return _core_.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs)
  2452.  
  2453.  
  2454. def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs):
  2455.     '''__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)'''
  2456.     return _core_.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs)
  2457.  
  2458.  
  2459. def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs):
  2460.     '''__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)'''
  2461.     return _core_.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs)
  2462.  
  2463.  
  2464. def MemoryFSHandler_AddFile(filename, dataItem, imgType = -1):
  2465.     """
  2466.     Add 'file' to the memory filesystem.  The dataItem parameter can
  2467.     either be a `wx.Bitmap`, `wx.Image` or a string that can contain
  2468.     arbitrary data.  If a bitmap or image is used then the imgType
  2469.     parameter should specify what kind of image file it should be
  2470.     written as, wx.BITMAP_TYPE_PNG, etc.
  2471.     """
  2472.     if isinstance(dataItem, wx.Image):
  2473.         __wxMemoryFSHandler_AddFile_wxImage(filename, dataItem, imgType)
  2474.     elif isinstance(dataItem, wx.Bitmap):
  2475.         __wxMemoryFSHandler_AddFile_wxBitmap(filename, dataItem, imgType)
  2476.     elif type(dataItem) == str:
  2477.         __wxMemoryFSHandler_AddFile_Data(filename, dataItem)
  2478.     else:
  2479.         raise TypeError, 'wx.Image, wx.Bitmap or string expected'
  2480.  
  2481.  
  2482. class MemoryFSHandler(CPPFileSystemHandler):
  2483.     '''Proxy of C++ MemoryFSHandler class'''
  2484.     
  2485.     def __repr__(self):
  2486.         return '<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2487.  
  2488.     
  2489.     def __init__(self, *args, **kwargs):
  2490.         '''__init__(self) -> MemoryFSHandler'''
  2491.         newobj = _core_.new_MemoryFSHandler(*args, **kwargs)
  2492.         self.this = newobj.this
  2493.         self.thisown = 1
  2494.         del newobj.thisown
  2495.  
  2496.     
  2497.     def RemoveFile(*args, **kwargs):
  2498.         '''RemoveFile(String filename)'''
  2499.         return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs)
  2500.  
  2501.     RemoveFile = staticmethod(RemoveFile)
  2502.     AddFile = staticmethod(MemoryFSHandler_AddFile)
  2503.     
  2504.     def CanOpen(*args, **kwargs):
  2505.         '''CanOpen(self, String location) -> bool'''
  2506.         return _core_.MemoryFSHandler_CanOpen(*args, **kwargs)
  2507.  
  2508.     
  2509.     def OpenFile(*args, **kwargs):
  2510.         '''OpenFile(self, FileSystem fs, String location) -> FSFile'''
  2511.         return _core_.MemoryFSHandler_OpenFile(*args, **kwargs)
  2512.  
  2513.     
  2514.     def FindFirst(*args, **kwargs):
  2515.         '''FindFirst(self, String spec, int flags=0) -> String'''
  2516.         return _core_.MemoryFSHandler_FindFirst(*args, **kwargs)
  2517.  
  2518.     
  2519.     def FindNext(*args, **kwargs):
  2520.         '''FindNext(self) -> String'''
  2521.         return _core_.MemoryFSHandler_FindNext(*args, **kwargs)
  2522.  
  2523.  
  2524.  
  2525. class MemoryFSHandlerPtr(MemoryFSHandler):
  2526.     
  2527.     def __init__(self, this):
  2528.         self.this = this
  2529.         if not hasattr(self, 'thisown'):
  2530.             self.thisown = 0
  2531.         
  2532.         self.__class__ = MemoryFSHandler
  2533.  
  2534.  
  2535. _core_.MemoryFSHandler_swigregister(MemoryFSHandlerPtr)
  2536.  
  2537. def MemoryFSHandler_RemoveFile(*args, **kwargs):
  2538.     '''MemoryFSHandler_RemoveFile(String filename)'''
  2539.     return _core_.MemoryFSHandler_RemoveFile(*args, **kwargs)
  2540.  
  2541. IMAGE_ALPHA_TRANSPARENT = _core_.IMAGE_ALPHA_TRANSPARENT
  2542. IMAGE_ALPHA_THRESHOLD = _core_.IMAGE_ALPHA_THRESHOLD
  2543. IMAGE_ALPHA_OPAQUE = _core_.IMAGE_ALPHA_OPAQUE
  2544.  
  2545. class ImageHandler(Object):
  2546.     '''
  2547.     This is the base class for implementing image file loading/saving, and
  2548.     image creation from data. It is used within `wx.Image` and is not
  2549.     normally seen by the application.
  2550.     '''
  2551.     
  2552.     def __init__(self):
  2553.         raise RuntimeError, 'No constructor defined'
  2554.  
  2555.     
  2556.     def __repr__(self):
  2557.         return '<%s.%s; proxy of C++ wxImageHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2558.  
  2559.     
  2560.     def GetName(*args, **kwargs):
  2561.         '''GetName(self) -> String'''
  2562.         return _core_.ImageHandler_GetName(*args, **kwargs)
  2563.  
  2564.     
  2565.     def GetExtension(*args, **kwargs):
  2566.         '''GetExtension(self) -> String'''
  2567.         return _core_.ImageHandler_GetExtension(*args, **kwargs)
  2568.  
  2569.     
  2570.     def GetType(*args, **kwargs):
  2571.         '''GetType(self) -> long'''
  2572.         return _core_.ImageHandler_GetType(*args, **kwargs)
  2573.  
  2574.     
  2575.     def GetMimeType(*args, **kwargs):
  2576.         '''GetMimeType(self) -> String'''
  2577.         return _core_.ImageHandler_GetMimeType(*args, **kwargs)
  2578.  
  2579.     
  2580.     def CanRead(*args, **kwargs):
  2581.         '''CanRead(self, String name) -> bool'''
  2582.         return _core_.ImageHandler_CanRead(*args, **kwargs)
  2583.  
  2584.     
  2585.     def SetName(*args, **kwargs):
  2586.         '''SetName(self, String name)'''
  2587.         return _core_.ImageHandler_SetName(*args, **kwargs)
  2588.  
  2589.     
  2590.     def SetExtension(*args, **kwargs):
  2591.         '''SetExtension(self, String extension)'''
  2592.         return _core_.ImageHandler_SetExtension(*args, **kwargs)
  2593.  
  2594.     
  2595.     def SetType(*args, **kwargs):
  2596.         '''SetType(self, long type)'''
  2597.         return _core_.ImageHandler_SetType(*args, **kwargs)
  2598.  
  2599.     
  2600.     def SetMimeType(*args, **kwargs):
  2601.         '''SetMimeType(self, String mimetype)'''
  2602.         return _core_.ImageHandler_SetMimeType(*args, **kwargs)
  2603.  
  2604.  
  2605.  
  2606. class ImageHandlerPtr(ImageHandler):
  2607.     
  2608.     def __init__(self, this):
  2609.         self.this = this
  2610.         if not hasattr(self, 'thisown'):
  2611.             self.thisown = 0
  2612.         
  2613.         self.__class__ = ImageHandler
  2614.  
  2615.  
  2616. _core_.ImageHandler_swigregister(ImageHandlerPtr)
  2617.  
  2618. class PyImageHandler(ImageHandler):
  2619.     """
  2620.     This is the base class for implementing image file loading/saving, and
  2621.     image creation from data, all written in Python.  To create a custom
  2622.     image handler derive a new class from wx.PyImageHandler and provide
  2623.     the following methods::
  2624.  
  2625.         def DoCanRead(self, stream) --> bool
  2626.             '''Check if this handler can read the image on the stream'''
  2627.  
  2628.         def LoadFile(self, image, stream, verbose, index) --> bool
  2629.             '''Load image data from the stream and load it into image.'''
  2630.  
  2631.         def SaveFile(self, image, stream, verbose) --> bool
  2632.             '''Save the iamge data in image to the stream using
  2633.                this handler's image file format.'''
  2634.  
  2635.         def GetImageCount(self, stream) --> int
  2636.             '''If this image format can hold more than one image,
  2637.                how many does the image on the stream have?'''
  2638.  
  2639.     To activate your handler create an instance of it and pass it to
  2640.     `wx.Image_AddHandler`.  Be sure to call `SetName`, `SetType`, and
  2641.     `SetExtension` from your constructor.
  2642.  
  2643.  
  2644.     """
  2645.     
  2646.     def __repr__(self):
  2647.         return '<%s.%s; proxy of C++ wxPyImageHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2648.  
  2649.     
  2650.     def __init__(self, *args, **kwargs):
  2651.         """
  2652.         __init__(self) -> PyImageHandler
  2653.  
  2654.         This is the base class for implementing image file loading/saving, and
  2655.         image creation from data, all written in Python.  To create a custom
  2656.         image handler derive a new class from wx.PyImageHandler and provide
  2657.         the following methods::
  2658.  
  2659.             def DoCanRead(self, stream) --> bool
  2660.                 '''Check if this handler can read the image on the stream'''
  2661.  
  2662.             def LoadFile(self, image, stream, verbose, index) --> bool
  2663.                 '''Load image data from the stream and load it into image.'''
  2664.  
  2665.             def SaveFile(self, image, stream, verbose) --> bool
  2666.                 '''Save the iamge data in image to the stream using
  2667.                    this handler's image file format.'''
  2668.  
  2669.             def GetImageCount(self, stream) --> int
  2670.                 '''If this image format can hold more than one image,
  2671.                    how many does the image on the stream have?'''
  2672.  
  2673.         To activate your handler create an instance of it and pass it to
  2674.         `wx.Image_AddHandler`.  Be sure to call `SetName`, `SetType`, and
  2675.         `SetExtension` from your constructor.
  2676.  
  2677.  
  2678.         """
  2679.         newobj = _core_.new_PyImageHandler(*args, **kwargs)
  2680.         self.this = newobj.this
  2681.         self.thisown = 1
  2682.         del newobj.thisown
  2683.         self._SetSelf(self)
  2684.  
  2685.     
  2686.     def _SetSelf(*args, **kwargs):
  2687.         '''_SetSelf(self, PyObject self)'''
  2688.         return _core_.PyImageHandler__SetSelf(*args, **kwargs)
  2689.  
  2690.  
  2691.  
  2692. class PyImageHandlerPtr(PyImageHandler):
  2693.     
  2694.     def __init__(self, this):
  2695.         self.this = this
  2696.         if not hasattr(self, 'thisown'):
  2697.             self.thisown = 0
  2698.         
  2699.         self.__class__ = PyImageHandler
  2700.  
  2701.  
  2702. _core_.PyImageHandler_swigregister(PyImageHandlerPtr)
  2703.  
  2704. class ImageHistogram(object):
  2705.     '''Proxy of C++ ImageHistogram class'''
  2706.     
  2707.     def __repr__(self):
  2708.         return '<%s.%s; proxy of C++ wxImageHistogram instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2709.  
  2710.     
  2711.     def __init__(self, *args, **kwargs):
  2712.         '''__init__(self) -> ImageHistogram'''
  2713.         newobj = _core_.new_ImageHistogram(*args, **kwargs)
  2714.         self.this = newobj.this
  2715.         self.thisown = 1
  2716.         del newobj.thisown
  2717.  
  2718.     
  2719.     def MakeKey(*args, **kwargs):
  2720.         '''
  2721.         MakeKey(byte r, byte g, byte b) -> unsigned long
  2722.  
  2723.         Get the key in the histogram for the given RGB values
  2724.         '''
  2725.         return _core_.ImageHistogram_MakeKey(*args, **kwargs)
  2726.  
  2727.     MakeKey = staticmethod(MakeKey)
  2728.     
  2729.     def FindFirstUnusedColour(*args, **kwargs):
  2730.         '''
  2731.         FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b)
  2732.  
  2733.         Find first colour that is not used in the image and has higher RGB
  2734.         values than startR, startG, startB.  Returns a tuple consisting of a
  2735.         success flag and rgb values.
  2736.         '''
  2737.         return _core_.ImageHistogram_FindFirstUnusedColour(*args, **kwargs)
  2738.  
  2739.     
  2740.     def GetCount(*args, **kwargs):
  2741.         '''
  2742.         GetCount(self, unsigned long key) -> unsigned long
  2743.  
  2744.         Returns the pixel count for the given key.  Use `MakeKey` to create a
  2745.         key value from a RGB tripple.
  2746.         '''
  2747.         return _core_.ImageHistogram_GetCount(*args, **kwargs)
  2748.  
  2749.     
  2750.     def GetCountRGB(*args, **kwargs):
  2751.         '''
  2752.         GetCountRGB(self, byte r, byte g, byte b) -> unsigned long
  2753.  
  2754.         Returns the pixel count for the given RGB values.
  2755.         '''
  2756.         return _core_.ImageHistogram_GetCountRGB(*args, **kwargs)
  2757.  
  2758.     
  2759.     def GetCountColour(*args, **kwargs):
  2760.         '''
  2761.         GetCountColour(self, Colour colour) -> unsigned long
  2762.  
  2763.         Returns the pixel count for the given `wx.Colour` value.
  2764.         '''
  2765.         return _core_.ImageHistogram_GetCountColour(*args, **kwargs)
  2766.  
  2767.  
  2768.  
  2769. class ImageHistogramPtr(ImageHistogram):
  2770.     
  2771.     def __init__(self, this):
  2772.         self.this = this
  2773.         if not hasattr(self, 'thisown'):
  2774.             self.thisown = 0
  2775.         
  2776.         self.__class__ = ImageHistogram
  2777.  
  2778.  
  2779. _core_.ImageHistogram_swigregister(ImageHistogramPtr)
  2780.  
  2781. def ImageHistogram_MakeKey(*args, **kwargs):
  2782.     '''
  2783.     ImageHistogram_MakeKey(byte r, byte g, byte b) -> unsigned long
  2784.  
  2785.     Get the key in the histogram for the given RGB values
  2786.     '''
  2787.     return _core_.ImageHistogram_MakeKey(*args, **kwargs)
  2788.  
  2789.  
  2790. class Image_RGBValue(object):
  2791.     '''
  2792.     An object that contains values for red, green and blue which represent
  2793.     the value of a color. It is used by `wx.Image.HSVtoRGB` and
  2794.     `wx.Image.RGBtoHSV`, which converts between HSV color space and RGB
  2795.     color space.
  2796.     '''
  2797.     
  2798.     def __repr__(self):
  2799.         return '<%s.%s; proxy of C++ wxImage_RGBValue instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2800.  
  2801.     
  2802.     def __init__(self, *args, **kwargs):
  2803.         '''
  2804.         __init__(self, byte r=0, byte g=0, byte b=0) -> Image_RGBValue
  2805.  
  2806.         Constructor.
  2807.         '''
  2808.         newobj = _core_.new_Image_RGBValue(*args, **kwargs)
  2809.         self.this = newobj.this
  2810.         self.thisown = 1
  2811.         del newobj.thisown
  2812.  
  2813.     red = property(_core_.Image_RGBValue_red_get, _core_.Image_RGBValue_red_set)
  2814.     green = property(_core_.Image_RGBValue_green_get, _core_.Image_RGBValue_green_set)
  2815.     blue = property(_core_.Image_RGBValue_blue_get, _core_.Image_RGBValue_blue_set)
  2816.  
  2817.  
  2818. class Image_RGBValuePtr(Image_RGBValue):
  2819.     
  2820.     def __init__(self, this):
  2821.         self.this = this
  2822.         if not hasattr(self, 'thisown'):
  2823.             self.thisown = 0
  2824.         
  2825.         self.__class__ = Image_RGBValue
  2826.  
  2827.  
  2828. _core_.Image_RGBValue_swigregister(Image_RGBValuePtr)
  2829.  
  2830. class Image_HSVValue(object):
  2831.     '''
  2832.     An object that contains values for hue, saturation and value which
  2833.     represent the value of a color.  It is used by `wx.Image.HSVtoRGB` and
  2834.     `wx.Image.RGBtoHSV`, which +converts between HSV color space and RGB
  2835.     color space.
  2836.     '''
  2837.     
  2838.     def __repr__(self):
  2839.         return '<%s.%s; proxy of C++ wxImage_HSVValue instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2840.  
  2841.     
  2842.     def __init__(self, *args, **kwargs):
  2843.         '''
  2844.         __init__(self, double h=0.0, double s=0.0, double v=0.0) -> Image_HSVValue
  2845.  
  2846.         Constructor.
  2847.         '''
  2848.         newobj = _core_.new_Image_HSVValue(*args, **kwargs)
  2849.         self.this = newobj.this
  2850.         self.thisown = 1
  2851.         del newobj.thisown
  2852.  
  2853.     hue = property(_core_.Image_HSVValue_hue_get, _core_.Image_HSVValue_hue_set)
  2854.     saturation = property(_core_.Image_HSVValue_saturation_get, _core_.Image_HSVValue_saturation_set)
  2855.     value = property(_core_.Image_HSVValue_value_get, _core_.Image_HSVValue_value_set)
  2856.  
  2857.  
  2858. class Image_HSVValuePtr(Image_HSVValue):
  2859.     
  2860.     def __init__(self, this):
  2861.         self.this = this
  2862.         if not hasattr(self, 'thisown'):
  2863.             self.thisown = 0
  2864.         
  2865.         self.__class__ = Image_HSVValue
  2866.  
  2867.  
  2868. _core_.Image_HSVValue_swigregister(Image_HSVValuePtr)
  2869.  
  2870. class Image(Object):
  2871.     '''
  2872.     A platform-independent image class.  An image can be created from
  2873.     data, or using `wx.Bitmap.ConvertToImage`, or loaded from a file in a
  2874.     variety of formats.  Functions are available to set and get image
  2875.     bits, so it can be used for basic image manipulation.
  2876.  
  2877.     A wx.Image cannot be drawn directly to a `wx.DC`.  Instead, a
  2878.     platform-specific `wx.Bitmap` object must be created from it using the
  2879.     `wx.BitmapFromImage` constructor. This bitmap can then be drawn in a
  2880.     device context, using `wx.DC.DrawBitmap`.
  2881.  
  2882.     One colour value of the image may be used as a mask colour which will
  2883.     lead to the automatic creation of a `wx.Mask` object associated to the
  2884.     bitmap object.
  2885.  
  2886.     wx.Image supports alpha channel data, that is in addition to a byte
  2887.     for the red, green and blue colour components for each pixel it also
  2888.     stores a byte representing the pixel opacity. An alpha value of 0
  2889.     corresponds to a transparent pixel (null opacity) while a value of 255
  2890.     means that the pixel is 100% opaque.
  2891.  
  2892.     Unlike RGB data, not all images have an alpha channel and before using
  2893.     `GetAlpha` you should check if this image contains an alpha channel
  2894.     with `HasAlpha`. Note that currently only images loaded from PNG files
  2895.     with transparency information will have an alpha channel.
  2896.     '''
  2897.     
  2898.     def __repr__(self):
  2899.         return '<%s.%s; proxy of C++ wxImage instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2900.  
  2901.     
  2902.     def __init__(self, *args, **kwargs):
  2903.         '''
  2904.         __init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image
  2905.  
  2906.         Loads an image from a file.
  2907.         '''
  2908.         newobj = _core_.new_Image(*args, **kwargs)
  2909.         self.this = newobj.this
  2910.         self.thisown = 1
  2911.         del newobj.thisown
  2912.  
  2913.     
  2914.     def __del__(self, destroy = _core_.delete_Image):
  2915.         '''__del__(self)'''
  2916.         
  2917.         try:
  2918.             if self.thisown:
  2919.                 destroy(self)
  2920.         except:
  2921.             pass
  2922.  
  2923.  
  2924.     
  2925.     def Create(*args, **kwargs):
  2926.         '''
  2927.         Create(self, int width, int height, bool clear=True)
  2928.  
  2929.         Creates a fresh image.  If clear is ``True``, the new image will be
  2930.         initialized to black. Otherwise, the image data will be uninitialized.
  2931.         '''
  2932.         return _core_.Image_Create(*args, **kwargs)
  2933.  
  2934.     
  2935.     def Destroy(*args, **kwargs):
  2936.         '''
  2937.         Destroy(self)
  2938.  
  2939.         Destroys the image data.
  2940.         '''
  2941.         return _core_.Image_Destroy(*args, **kwargs)
  2942.  
  2943.     
  2944.     def Scale(*args, **kwargs):
  2945.         '''
  2946.         Scale(self, int width, int height) -> Image
  2947.  
  2948.         Returns a scaled version of the image. This is also useful for scaling
  2949.         bitmaps in general as the only other way to scale bitmaps is to blit a
  2950.         `wx.MemoryDC` into another `wx.MemoryDC`.
  2951.         '''
  2952.         return _core_.Image_Scale(*args, **kwargs)
  2953.  
  2954.     
  2955.     def ShrinkBy(*args, **kwargs):
  2956.         '''
  2957.         ShrinkBy(self, int xFactor, int yFactor) -> Image
  2958.  
  2959.         Return a version of the image scaled smaller by the given factors.
  2960.         '''
  2961.         return _core_.Image_ShrinkBy(*args, **kwargs)
  2962.  
  2963.     
  2964.     def Rescale(*args, **kwargs):
  2965.         '''
  2966.         Rescale(self, int width, int height) -> Image
  2967.  
  2968.         Changes the size of the image in-place by scaling it: after a call to
  2969.         this function, the image will have the given width and height.
  2970.  
  2971.         Returns the (modified) image itself.
  2972.         '''
  2973.         return _core_.Image_Rescale(*args, **kwargs)
  2974.  
  2975.     
  2976.     def Resize(*args, **kwargs):
  2977.         '''
  2978.         Resize(self, Size size, Point pos, int r=-1, int g=-1, int b=-1) -> Image
  2979.  
  2980.         Changes the size of the image in-place without scaling it, by adding
  2981.         either a border with the given colour or cropping as necessary. The
  2982.         image is pasted into a new image with the given size and background
  2983.         colour at the position pos relative to the upper left of the new
  2984.         image. If red = green = blue = -1 then use either the current mask
  2985.         colour if set or find, use, and set a suitable mask colour for any
  2986.         newly exposed areas.
  2987.  
  2988.         Returns the (modified) image itself.
  2989.         '''
  2990.         return _core_.Image_Resize(*args, **kwargs)
  2991.  
  2992.     
  2993.     def SetRGB(*args, **kwargs):
  2994.         '''
  2995.         SetRGB(self, int x, int y, byte r, byte g, byte b)
  2996.  
  2997.         Sets the pixel at the given coordinate. This routine performs
  2998.         bounds-checks for the coordinate so it can be considered a safe way to
  2999.         manipulate the data, but in some cases this might be too slow so that
  3000.         the data will have to be set directly. In that case you will have to
  3001.         get access to the image data using the `GetData` method.
  3002.         '''
  3003.         return _core_.Image_SetRGB(*args, **kwargs)
  3004.  
  3005.     
  3006.     def SetRGBRect(*args, **kwargs):
  3007.         '''
  3008.         SetRGBRect(self, Rect rect, byte r, byte g, byte b)
  3009.  
  3010.         Sets the colour of the pixels within the given rectangle. This routine
  3011.         performs bounds-checks for the rectangle so it can be considered a
  3012.         safe way to manipulate the data.
  3013.         '''
  3014.         return _core_.Image_SetRGBRect(*args, **kwargs)
  3015.  
  3016.     
  3017.     def GetRed(*args, **kwargs):
  3018.         '''
  3019.         GetRed(self, int x, int y) -> byte
  3020.  
  3021.         Returns the red intensity at the given coordinate.
  3022.         '''
  3023.         return _core_.Image_GetRed(*args, **kwargs)
  3024.  
  3025.     
  3026.     def GetGreen(*args, **kwargs):
  3027.         '''
  3028.         GetGreen(self, int x, int y) -> byte
  3029.  
  3030.         Returns the green intensity at the given coordinate.
  3031.         '''
  3032.         return _core_.Image_GetGreen(*args, **kwargs)
  3033.  
  3034.     
  3035.     def GetBlue(*args, **kwargs):
  3036.         '''
  3037.         GetBlue(self, int x, int y) -> byte
  3038.  
  3039.         Returns the blue intensity at the given coordinate.
  3040.         '''
  3041.         return _core_.Image_GetBlue(*args, **kwargs)
  3042.  
  3043.     
  3044.     def SetAlpha(*args, **kwargs):
  3045.         '''
  3046.         SetAlpha(self, int x, int y, byte alpha)
  3047.  
  3048.         Sets the alpha value for the given pixel. This function should only be
  3049.         called if the image has alpha channel data, use `HasAlpha` to check
  3050.         for this.
  3051.         '''
  3052.         return _core_.Image_SetAlpha(*args, **kwargs)
  3053.  
  3054.     
  3055.     def GetAlpha(*args, **kwargs):
  3056.         '''
  3057.         GetAlpha(self, int x, int y) -> byte
  3058.  
  3059.         Returns the alpha value for the given pixel. This function may only be
  3060.         called for the images with alpha channel, use `HasAlpha` to check for
  3061.         this.
  3062.  
  3063.         The returned value is the *opacity* of the image, i.e. the value of 0
  3064.         corresponds to the fully transparent pixels while the value of 255 to
  3065.         the fully opaque pixels.
  3066.         '''
  3067.         return _core_.Image_GetAlpha(*args, **kwargs)
  3068.  
  3069.     
  3070.     def HasAlpha(*args, **kwargs):
  3071.         '''
  3072.         HasAlpha(self) -> bool
  3073.  
  3074.         Returns true if this image has alpha channel, false otherwise.
  3075.         '''
  3076.         return _core_.Image_HasAlpha(*args, **kwargs)
  3077.  
  3078.     
  3079.     def InitAlpha(*args, **kwargs):
  3080.         """
  3081.         InitAlpha(self)
  3082.  
  3083.         Initializes the image alpha channel data. It is an error to call it if
  3084.         the image already has alpha data. If it doesn't, alpha data will be by
  3085.         default initialized to all pixels being fully opaque. But if the image
  3086.         has a a mask colour, all mask pixels will be completely transparent.
  3087.         """
  3088.         return _core_.Image_InitAlpha(*args, **kwargs)
  3089.  
  3090.     
  3091.     def IsTransparent(*args, **kwargs):
  3092.         '''
  3093.         IsTransparent(self, int x, int y, byte threshold=IMAGE_ALPHA_THRESHOLD) -> bool
  3094.  
  3095.         Returns ``True`` if this pixel is masked or has an alpha value less
  3096.         than the spcified threshold.
  3097.         '''
  3098.         return _core_.Image_IsTransparent(*args, **kwargs)
  3099.  
  3100.     
  3101.     def FindFirstUnusedColour(*args, **kwargs):
  3102.         '''
  3103.         FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b)
  3104.  
  3105.         Find first colour that is not used in the image and has higher RGB
  3106.         values than startR, startG, startB.  Returns a tuple consisting of a
  3107.         success flag and rgb values.
  3108.         '''
  3109.         return _core_.Image_FindFirstUnusedColour(*args, **kwargs)
  3110.  
  3111.     
  3112.     def ConvertAlphaToMask(*args, **kwargs):
  3113.         """
  3114.         ConvertAlphaToMask(self, byte threshold=IMAGE_ALPHA_THRESHOLD) -> bool
  3115.  
  3116.         If the image has alpha channel, this method converts it to mask. All
  3117.         pixels with alpha value less than ``threshold`` are replaced with the
  3118.         mask colour and the alpha channel is removed. The mask colour is
  3119.         chosen automatically using `FindFirstUnusedColour`.
  3120.  
  3121.         If the image image doesn't have alpha channel, ConvertAlphaToMask does
  3122.         nothing.
  3123.         """
  3124.         return _core_.Image_ConvertAlphaToMask(*args, **kwargs)
  3125.  
  3126.     
  3127.     def ConvertColourToAlpha(*args, **kwargs):
  3128.         '''
  3129.         ConvertColourToAlpha(self, byte r, byte g, byte b) -> bool
  3130.  
  3131.         This method converts an image where the original alpha information is
  3132.         only available as a shades of a colour (actually shades of grey)
  3133.         typically when you draw anti-aliased text into a bitmap. The DC
  3134.         drawing routines draw grey values on the black background although
  3135.         they actually mean to draw white with differnt alpha values.  This
  3136.         method reverses it, assuming a black (!) background and white text.
  3137.         The method will then fill up the whole image with the colour given.
  3138.         '''
  3139.         return _core_.Image_ConvertColourToAlpha(*args, **kwargs)
  3140.  
  3141.     
  3142.     def SetMaskFromImage(*args, **kwargs):
  3143.         """
  3144.         SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool
  3145.  
  3146.         Sets the image's mask so that the pixels that have RGB value of
  3147.         ``(mr,mg,mb)`` in ``mask`` will be masked in this image. This is done
  3148.         by first finding an unused colour in the image, setting this colour as
  3149.         the mask colour and then using this colour to draw all pixels in the
  3150.         image who corresponding pixel in mask has given RGB value.
  3151.  
  3152.         Returns ``False`` if ``mask`` does not have same dimensions as the
  3153.         image or if there is no unused colour left. Returns ``True`` if the
  3154.         mask was successfully applied.
  3155.  
  3156.         Note that this method involves computing the histogram, which is
  3157.         computationally intensive operation.
  3158.         """
  3159.         return _core_.Image_SetMaskFromImage(*args, **kwargs)
  3160.  
  3161.     
  3162.     def CanRead(*args, **kwargs):
  3163.         '''
  3164.         CanRead(String filename) -> bool
  3165.  
  3166.         Returns True if the image handlers can read this file.
  3167.         '''
  3168.         return _core_.Image_CanRead(*args, **kwargs)
  3169.  
  3170.     CanRead = staticmethod(CanRead)
  3171.     
  3172.     def GetImageCount(*args, **kwargs):
  3173.         '''
  3174.         GetImageCount(String filename, long type=BITMAP_TYPE_ANY) -> int
  3175.  
  3176.         If the image file contains more than one image and the image handler
  3177.         is capable of retrieving these individually, this function will return
  3178.         the number of available images.
  3179.         '''
  3180.         return _core_.Image_GetImageCount(*args, **kwargs)
  3181.  
  3182.     GetImageCount = staticmethod(GetImageCount)
  3183.     
  3184.     def LoadFile(*args, **kwargs):
  3185.         '''
  3186.         LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool
  3187.  
  3188.         Loads an image from a file. If no handler type is provided, the
  3189.         library will try to autodetect the format.
  3190.         '''
  3191.         return _core_.Image_LoadFile(*args, **kwargs)
  3192.  
  3193.     
  3194.     def LoadMimeFile(*args, **kwargs):
  3195.         '''
  3196.         LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool
  3197.  
  3198.         Loads an image from a file, specifying the image type with a MIME type
  3199.         string.
  3200.         '''
  3201.         return _core_.Image_LoadMimeFile(*args, **kwargs)
  3202.  
  3203.     
  3204.     def SaveFile(*args, **kwargs):
  3205.         '''
  3206.         SaveFile(self, String name, int type) -> bool
  3207.  
  3208.         Saves an image in the named file.
  3209.         '''
  3210.         return _core_.Image_SaveFile(*args, **kwargs)
  3211.  
  3212.     
  3213.     def SaveMimeFile(*args, **kwargs):
  3214.         '''
  3215.         SaveMimeFile(self, String name, String mimetype) -> bool
  3216.  
  3217.         Saves an image in the named file.
  3218.         '''
  3219.         return _core_.Image_SaveMimeFile(*args, **kwargs)
  3220.  
  3221.     
  3222.     def CanReadStream(*args, **kwargs):
  3223.         '''
  3224.         CanReadStream(InputStream stream) -> bool
  3225.  
  3226.         Returns True if the image handlers can read an image file from the
  3227.         data currently on the input stream, or a readable Python file-like
  3228.         object.
  3229.         '''
  3230.         return _core_.Image_CanReadStream(*args, **kwargs)
  3231.  
  3232.     CanReadStream = staticmethod(CanReadStream)
  3233.     
  3234.     def LoadStream(*args, **kwargs):
  3235.         '''
  3236.         LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool
  3237.  
  3238.         Loads an image from an input stream or a readable Python file-like
  3239.         object. If no handler type is provided, the library will try to
  3240.         autodetect the format.
  3241.         '''
  3242.         return _core_.Image_LoadStream(*args, **kwargs)
  3243.  
  3244.     
  3245.     def LoadMimeStream(*args, **kwargs):
  3246.         '''
  3247.         LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool
  3248.  
  3249.         Loads an image from an input stream or a readable Python file-like
  3250.         object, using a MIME type string to specify the image file format.
  3251.         '''
  3252.         return _core_.Image_LoadMimeStream(*args, **kwargs)
  3253.  
  3254.     
  3255.     def Ok(*args, **kwargs):
  3256.         '''
  3257.         Ok(self) -> bool
  3258.  
  3259.         Returns true if image data is present.
  3260.         '''
  3261.         return _core_.Image_Ok(*args, **kwargs)
  3262.  
  3263.     
  3264.     def GetWidth(*args, **kwargs):
  3265.         '''
  3266.         GetWidth(self) -> int
  3267.  
  3268.         Gets the width of the image in pixels.
  3269.         '''
  3270.         return _core_.Image_GetWidth(*args, **kwargs)
  3271.  
  3272.     
  3273.     def GetHeight(*args, **kwargs):
  3274.         '''
  3275.         GetHeight(self) -> int
  3276.  
  3277.         Gets the height of the image in pixels.
  3278.         '''
  3279.         return _core_.Image_GetHeight(*args, **kwargs)
  3280.  
  3281.     
  3282.     def GetSize(*args, **kwargs):
  3283.         '''
  3284.         GetSize(self) -> Size
  3285.  
  3286.         Returns the size of the image in pixels.
  3287.         '''
  3288.         return _core_.Image_GetSize(*args, **kwargs)
  3289.  
  3290.     
  3291.     def GetSubImage(*args, **kwargs):
  3292.         '''
  3293.         GetSubImage(self, Rect rect) -> Image
  3294.  
  3295.         Returns a sub image of the current one as long as the rect belongs
  3296.         entirely to the image.
  3297.         '''
  3298.         return _core_.Image_GetSubImage(*args, **kwargs)
  3299.  
  3300.     
  3301.     def Size(*args, **kwargs):
  3302.         '''
  3303.         Size(self, Size size, Point pos, int r=-1, int g=-1, int b=-1) -> Image
  3304.  
  3305.         Returns a resized version of this image without scaling it by adding
  3306.         either a border with the given colour or cropping as necessary. The
  3307.         image is pasted into a new image with the given size and background
  3308.         colour at the position ``pos`` relative to the upper left of the new
  3309.         image. If red = green = blue = -1 then use either the current mask
  3310.         colour if set or find, use, and set a suitable mask colour for any
  3311.         newly exposed areas.
  3312.         '''
  3313.         return _core_.Image_Size(*args, **kwargs)
  3314.  
  3315.     
  3316.     def Copy(*args, **kwargs):
  3317.         '''
  3318.         Copy(self) -> Image
  3319.  
  3320.         Returns an identical copy of the image.
  3321.         '''
  3322.         return _core_.Image_Copy(*args, **kwargs)
  3323.  
  3324.     
  3325.     def Paste(*args, **kwargs):
  3326.         '''
  3327.         Paste(self, Image image, int x, int y)
  3328.  
  3329.         Pastes ``image`` into this instance and takes care of the mask colour
  3330.         and any out of bounds problems.
  3331.         '''
  3332.         return _core_.Image_Paste(*args, **kwargs)
  3333.  
  3334.     
  3335.     def GetData(*args, **kwargs):
  3336.         '''
  3337.         GetData(self) -> PyObject
  3338.  
  3339.         Returns a string containing a copy of the RGB bytes of the image.
  3340.         '''
  3341.         return _core_.Image_GetData(*args, **kwargs)
  3342.  
  3343.     
  3344.     def SetData(*args, **kwargs):
  3345.         """
  3346.         SetData(self, buffer data)
  3347.  
  3348.         Resets the Image's RGB data from a buffer of RGB bytes.  Accepts
  3349.         either a string or a buffer object holding the data and the length of
  3350.         the data must be width*height*3.
  3351.         """
  3352.         return _core_.Image_SetData(*args, **kwargs)
  3353.  
  3354.     
  3355.     def GetDataBuffer(*args, **kwargs):
  3356.         '''
  3357.         GetDataBuffer(self) -> PyObject
  3358.  
  3359.         Returns a writable Python buffer object that is pointing at the RGB
  3360.         image data buffer inside the wx.Image. You need to ensure that you do
  3361.         not use this buffer object after the image has been destroyed.
  3362.         '''
  3363.         return _core_.Image_GetDataBuffer(*args, **kwargs)
  3364.  
  3365.     
  3366.     def SetDataBuffer(*args, **kwargs):
  3367.         '''
  3368.         SetDataBuffer(self, buffer data)
  3369.  
  3370.         Sets the internal image data pointer to point at a Python buffer
  3371.         object.  This can save making an extra copy of the data but you must
  3372.         ensure that the buffer object lives longer than the wx.Image does.
  3373.         '''
  3374.         return _core_.Image_SetDataBuffer(*args, **kwargs)
  3375.  
  3376.     
  3377.     def GetAlphaData(*args, **kwargs):
  3378.         '''
  3379.         GetAlphaData(self) -> PyObject
  3380.  
  3381.         Returns a string containing a copy of the alpha bytes of the image.
  3382.         '''
  3383.         return _core_.Image_GetAlphaData(*args, **kwargs)
  3384.  
  3385.     
  3386.     def SetAlphaData(*args, **kwargs):
  3387.         """
  3388.         SetAlphaData(self, buffer alpha)
  3389.  
  3390.         Resets the Image's alpha data from a buffer of bytes.  Accepts either
  3391.         a string or a buffer object holding the data and the length of the
  3392.         data must be width*height.
  3393.         """
  3394.         return _core_.Image_SetAlphaData(*args, **kwargs)
  3395.  
  3396.     
  3397.     def GetAlphaBuffer(*args, **kwargs):
  3398.         '''GetAlphaBuffer(self) -> PyObject'''
  3399.         return _core_.Image_GetAlphaBuffer(*args, **kwargs)
  3400.  
  3401.     
  3402.     def SetAlphaBuffer(*args, **kwargs):
  3403.         '''SetAlphaBuffer(self, buffer alpha)'''
  3404.         return _core_.Image_SetAlphaBuffer(*args, **kwargs)
  3405.  
  3406.     
  3407.     def SetMaskColour(*args, **kwargs):
  3408.         '''
  3409.         SetMaskColour(self, byte r, byte g, byte b)
  3410.  
  3411.         Sets the mask colour for this image (and tells the image to use the
  3412.         mask).
  3413.         '''
  3414.         return _core_.Image_SetMaskColour(*args, **kwargs)
  3415.  
  3416.     
  3417.     def GetOrFindMaskColour(*args, **kwargs):
  3418.         '''
  3419.         GetOrFindMaskColour() -> (r,g,b)
  3420.  
  3421.         Get the current mask colour or find a suitable colour.
  3422.         '''
  3423.         return _core_.Image_GetOrFindMaskColour(*args, **kwargs)
  3424.  
  3425.     
  3426.     def GetMaskRed(*args, **kwargs):
  3427.         '''
  3428.         GetMaskRed(self) -> byte
  3429.  
  3430.         Gets the red component of the mask colour.
  3431.         '''
  3432.         return _core_.Image_GetMaskRed(*args, **kwargs)
  3433.  
  3434.     
  3435.     def GetMaskGreen(*args, **kwargs):
  3436.         '''
  3437.         GetMaskGreen(self) -> byte
  3438.  
  3439.         Gets the green component of the mask colour.
  3440.         '''
  3441.         return _core_.Image_GetMaskGreen(*args, **kwargs)
  3442.  
  3443.     
  3444.     def GetMaskBlue(*args, **kwargs):
  3445.         '''
  3446.         GetMaskBlue(self) -> byte
  3447.  
  3448.         Gets the blue component of the mask colour.
  3449.         '''
  3450.         return _core_.Image_GetMaskBlue(*args, **kwargs)
  3451.  
  3452.     
  3453.     def SetMask(*args, **kwargs):
  3454.         '''
  3455.         SetMask(self, bool mask=True)
  3456.  
  3457.         Specifies whether there is a mask or not. The area of the mask is
  3458.         determined by the current mask colour.
  3459.         '''
  3460.         return _core_.Image_SetMask(*args, **kwargs)
  3461.  
  3462.     
  3463.     def HasMask(*args, **kwargs):
  3464.         '''
  3465.         HasMask(self) -> bool
  3466.  
  3467.         Returns ``True`` if there is a mask active, ``False`` otherwise.
  3468.         '''
  3469.         return _core_.Image_HasMask(*args, **kwargs)
  3470.  
  3471.     
  3472.     def Rotate(*args, **kwargs):
  3473.         '''
  3474.         Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True, 
  3475.             Point offset_after_rotation=None) -> Image
  3476.  
  3477.         Rotates the image about the given point, by ``angle`` radians. Passing
  3478.         ``True`` to ``interpolating`` results in better image quality, but is
  3479.         slower. If the image has a mask, then the mask colour is used for the
  3480.         uncovered pixels in the rotated image background. Otherwise, black
  3481.         will be used as the fill colour.
  3482.  
  3483.         Returns the rotated image, leaving this image intact.
  3484.         '''
  3485.         return _core_.Image_Rotate(*args, **kwargs)
  3486.  
  3487.     
  3488.     def Rotate90(*args, **kwargs):
  3489.         '''
  3490.         Rotate90(self, bool clockwise=True) -> Image
  3491.  
  3492.         Returns a copy of the image rotated 90 degrees in the direction
  3493.         indicated by ``clockwise``.
  3494.         '''
  3495.         return _core_.Image_Rotate90(*args, **kwargs)
  3496.  
  3497.     
  3498.     def Mirror(*args, **kwargs):
  3499.         '''
  3500.         Mirror(self, bool horizontally=True) -> Image
  3501.  
  3502.         Returns a mirrored copy of the image. The parameter ``horizontally``
  3503.         indicates the orientation.
  3504.         '''
  3505.         return _core_.Image_Mirror(*args, **kwargs)
  3506.  
  3507.     
  3508.     def Replace(*args, **kwargs):
  3509.         '''
  3510.         Replace(self, byte r1, byte g1, byte b1, byte r2, byte g2, byte b2)
  3511.  
  3512.         Replaces the colour specified by ``(r1,g1,b1)`` by the colour
  3513.         ``(r2,g2,b2)``.
  3514.         '''
  3515.         return _core_.Image_Replace(*args, **kwargs)
  3516.  
  3517.     
  3518.     def ConvertToMono(*args, **kwargs):
  3519.         '''
  3520.         ConvertToMono(self, byte r, byte g, byte b) -> Image
  3521.  
  3522.         Returns monochromatic version of the image. The returned image has
  3523.         white colour where the original has ``(r,g,b)`` colour and black
  3524.         colour everywhere else.
  3525.         '''
  3526.         return _core_.Image_ConvertToMono(*args, **kwargs)
  3527.  
  3528.     
  3529.     def SetOption(*args, **kwargs):
  3530.         '''
  3531.         SetOption(self, String name, String value)
  3532.  
  3533.         Sets an image handler defined option.  For example, when saving as a
  3534.         JPEG file, the option ``wx.IMAGE_OPTION_QUALITY`` is used, which is a
  3535.         number between 0 and 100 (0 is terrible, 100 is very good).
  3536.         '''
  3537.         return _core_.Image_SetOption(*args, **kwargs)
  3538.  
  3539.     
  3540.     def SetOptionInt(*args, **kwargs):
  3541.         '''
  3542.         SetOptionInt(self, String name, int value)
  3543.  
  3544.         Sets an image option as an integer.
  3545.         '''
  3546.         return _core_.Image_SetOptionInt(*args, **kwargs)
  3547.  
  3548.     
  3549.     def GetOption(*args, **kwargs):
  3550.         '''
  3551.         GetOption(self, String name) -> String
  3552.  
  3553.         Gets the value of an image handler option.
  3554.         '''
  3555.         return _core_.Image_GetOption(*args, **kwargs)
  3556.  
  3557.     
  3558.     def GetOptionInt(*args, **kwargs):
  3559.         '''
  3560.         GetOptionInt(self, String name) -> int
  3561.  
  3562.         Gets the value of an image handler option as an integer.  If the given
  3563.         option is not present, the function returns 0.
  3564.         '''
  3565.         return _core_.Image_GetOptionInt(*args, **kwargs)
  3566.  
  3567.     
  3568.     def HasOption(*args, **kwargs):
  3569.         '''
  3570.         HasOption(self, String name) -> bool
  3571.  
  3572.         Returns true if the given option is present.
  3573.         '''
  3574.         return _core_.Image_HasOption(*args, **kwargs)
  3575.  
  3576.     
  3577.     def CountColours(*args, **kwargs):
  3578.         '''CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long'''
  3579.         return _core_.Image_CountColours(*args, **kwargs)
  3580.  
  3581.     
  3582.     def ComputeHistogram(*args, **kwargs):
  3583.         '''ComputeHistogram(self, ImageHistogram h) -> unsigned long'''
  3584.         return _core_.Image_ComputeHistogram(*args, **kwargs)
  3585.  
  3586.     
  3587.     def AddHandler(*args, **kwargs):
  3588.         '''AddHandler(ImageHandler handler)'''
  3589.         return _core_.Image_AddHandler(*args, **kwargs)
  3590.  
  3591.     AddHandler = staticmethod(AddHandler)
  3592.     
  3593.     def InsertHandler(*args, **kwargs):
  3594.         '''InsertHandler(ImageHandler handler)'''
  3595.         return _core_.Image_InsertHandler(*args, **kwargs)
  3596.  
  3597.     InsertHandler = staticmethod(InsertHandler)
  3598.     
  3599.     def RemoveHandler(*args, **kwargs):
  3600.         '''RemoveHandler(String name) -> bool'''
  3601.         return _core_.Image_RemoveHandler(*args, **kwargs)
  3602.  
  3603.     RemoveHandler = staticmethod(RemoveHandler)
  3604.     
  3605.     def GetHandlers(*args, **kwargs):
  3606.         '''GetHandlers() -> PyObject'''
  3607.         return _core_.Image_GetHandlers(*args, **kwargs)
  3608.  
  3609.     GetHandlers = staticmethod(GetHandlers)
  3610.     
  3611.     def GetImageExtWildcard(*args, **kwargs):
  3612.         '''
  3613.         GetImageExtWildcard() -> String
  3614.  
  3615.         Iterates all registered wxImageHandler objects, and returns a string
  3616.         containing file extension masks suitable for passing to file open/save
  3617.         dialog boxes.
  3618.         '''
  3619.         return _core_.Image_GetImageExtWildcard(*args, **kwargs)
  3620.  
  3621.     GetImageExtWildcard = staticmethod(GetImageExtWildcard)
  3622.     
  3623.     def ConvertToBitmap(*args, **kwargs):
  3624.         '''ConvertToBitmap(self, int depth=-1) -> Bitmap'''
  3625.         return _core_.Image_ConvertToBitmap(*args, **kwargs)
  3626.  
  3627.     
  3628.     def ConvertToMonoBitmap(*args, **kwargs):
  3629.         '''ConvertToMonoBitmap(self, byte red, byte green, byte blue) -> Bitmap'''
  3630.         return _core_.Image_ConvertToMonoBitmap(*args, **kwargs)
  3631.  
  3632.     
  3633.     def RotateHue(*args, **kwargs):
  3634.         '''
  3635.         RotateHue(self, double angle)
  3636.  
  3637.         Rotates the hue of each pixel of the image. Hue is a double in the
  3638.         range -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees
  3639.         '''
  3640.         return _core_.Image_RotateHue(*args, **kwargs)
  3641.  
  3642.     
  3643.     def RGBtoHSV(*args, **kwargs):
  3644.         '''
  3645.         RGBtoHSV(Image_RGBValue rgb) -> Image_HSVValue
  3646.  
  3647.         Converts a color in RGB color space to HSV color space.
  3648.         '''
  3649.         return _core_.Image_RGBtoHSV(*args, **kwargs)
  3650.  
  3651.     RGBtoHSV = staticmethod(RGBtoHSV)
  3652.     
  3653.     def HSVtoRGB(*args, **kwargs):
  3654.         '''
  3655.         HSVtoRGB(Image_HSVValue hsv) -> Image_RGBValue
  3656.  
  3657.         Converts a color in HSV color space to RGB color space.
  3658.         '''
  3659.         return _core_.Image_HSVtoRGB(*args, **kwargs)
  3660.  
  3661.     HSVtoRGB = staticmethod(HSVtoRGB)
  3662.     
  3663.     def __nonzero__(self):
  3664.         return self.Ok()
  3665.  
  3666.  
  3667.  
  3668. class ImagePtr(Image):
  3669.     
  3670.     def __init__(self, this):
  3671.         self.this = this
  3672.         if not hasattr(self, 'thisown'):
  3673.             self.thisown = 0
  3674.         
  3675.         self.__class__ = Image
  3676.  
  3677.  
  3678. _core_.Image_swigregister(ImagePtr)
  3679.  
  3680. def ImageFromMime(*args, **kwargs):
  3681.     """
  3682.     ImageFromMime(String name, String mimetype, int index=-1) -> Image
  3683.  
  3684.     Loads an image from a file, using a MIME type string (such as
  3685.     'image/jpeg') to specify image type.
  3686.     """
  3687.     val = _core_.new_ImageFromMime(*args, **kwargs)
  3688.     val.thisown = 1
  3689.     return val
  3690.  
  3691.  
  3692. def ImageFromStream(*args, **kwargs):
  3693.     '''
  3694.     ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image
  3695.  
  3696.     Loads an image from an input stream, or any readable Python file-like
  3697.     object.
  3698.     '''
  3699.     val = _core_.new_ImageFromStream(*args, **kwargs)
  3700.     val.thisown = 1
  3701.     return val
  3702.  
  3703.  
  3704. def ImageFromStreamMime(*args, **kwargs):
  3705.     '''
  3706.     ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image
  3707.  
  3708.     Loads an image from an input stream, or any readable Python file-like
  3709.     object, specifying the image format with a MIME type string.
  3710.     '''
  3711.     val = _core_.new_ImageFromStreamMime(*args, **kwargs)
  3712.     val.thisown = 1
  3713.     return val
  3714.  
  3715.  
  3716. def EmptyImage(*args, **kwargs):
  3717.     '''
  3718.     EmptyImage(int width=0, int height=0, bool clear=True) -> Image
  3719.  
  3720.     Construct an empty image of a given size, optionally setting all
  3721.     pixels to black.
  3722.     '''
  3723.     val = _core_.new_EmptyImage(*args, **kwargs)
  3724.     val.thisown = 1
  3725.     return val
  3726.  
  3727.  
  3728. def ImageFromBitmap(*args, **kwargs):
  3729.     '''
  3730.     ImageFromBitmap(Bitmap bitmap) -> Image
  3731.  
  3732.     Construct an Image from a `wx.Bitmap`.
  3733.     '''
  3734.     val = _core_.new_ImageFromBitmap(*args, **kwargs)
  3735.     val.thisown = 1
  3736.     return val
  3737.  
  3738.  
  3739. def ImageFromData(*args, **kwargs):
  3740.     '''
  3741.     ImageFromData(int width, int height, buffer data) -> Image
  3742.  
  3743.     Construct an Image from a buffer of RGB bytes.  Accepts either a
  3744.     string or a buffer object holding the data and the length of the data
  3745.     must be width*height*3.
  3746.     '''
  3747.     val = _core_.new_ImageFromData(*args, **kwargs)
  3748.     val.thisown = 1
  3749.     return val
  3750.  
  3751.  
  3752. def ImageFromDataWithAlpha(*args, **kwargs):
  3753.     '''
  3754.     ImageFromDataWithAlpha(int width, int height, buffer data, buffer alpha) -> Image
  3755.  
  3756.     Construct an Image from a buffer of RGB bytes with an Alpha channel.
  3757.     Accepts either a string or a buffer object holding the data and the
  3758.     length of the data must be width*height*3 bytes, and the length of the
  3759.     alpha data must be width*height bytes.
  3760.     '''
  3761.     val = _core_.new_ImageFromDataWithAlpha(*args, **kwargs)
  3762.     val.thisown = 1
  3763.     return val
  3764.  
  3765.  
  3766. def Image_CanRead(*args, **kwargs):
  3767.     '''
  3768.     Image_CanRead(String filename) -> bool
  3769.  
  3770.     Returns True if the image handlers can read this file.
  3771.     '''
  3772.     return _core_.Image_CanRead(*args, **kwargs)
  3773.  
  3774.  
  3775. def Image_GetImageCount(*args, **kwargs):
  3776.     '''
  3777.     Image_GetImageCount(String filename, long type=BITMAP_TYPE_ANY) -> int
  3778.  
  3779.     If the image file contains more than one image and the image handler
  3780.     is capable of retrieving these individually, this function will return
  3781.     the number of available images.
  3782.     '''
  3783.     return _core_.Image_GetImageCount(*args, **kwargs)
  3784.  
  3785.  
  3786. def Image_CanReadStream(*args, **kwargs):
  3787.     '''
  3788.     Image_CanReadStream(InputStream stream) -> bool
  3789.  
  3790.     Returns True if the image handlers can read an image file from the
  3791.     data currently on the input stream, or a readable Python file-like
  3792.     object.
  3793.     '''
  3794.     return _core_.Image_CanReadStream(*args, **kwargs)
  3795.  
  3796.  
  3797. def Image_AddHandler(*args, **kwargs):
  3798.     '''Image_AddHandler(ImageHandler handler)'''
  3799.     return _core_.Image_AddHandler(*args, **kwargs)
  3800.  
  3801.  
  3802. def Image_InsertHandler(*args, **kwargs):
  3803.     '''Image_InsertHandler(ImageHandler handler)'''
  3804.     return _core_.Image_InsertHandler(*args, **kwargs)
  3805.  
  3806.  
  3807. def Image_RemoveHandler(*args, **kwargs):
  3808.     '''Image_RemoveHandler(String name) -> bool'''
  3809.     return _core_.Image_RemoveHandler(*args, **kwargs)
  3810.  
  3811.  
  3812. def Image_GetHandlers(*args, **kwargs):
  3813.     '''Image_GetHandlers() -> PyObject'''
  3814.     return _core_.Image_GetHandlers(*args, **kwargs)
  3815.  
  3816.  
  3817. def Image_GetImageExtWildcard(*args, **kwargs):
  3818.     '''
  3819.     Image_GetImageExtWildcard() -> String
  3820.  
  3821.     Iterates all registered wxImageHandler objects, and returns a string
  3822.     containing file extension masks suitable for passing to file open/save
  3823.     dialog boxes.
  3824.     '''
  3825.     return _core_.Image_GetImageExtWildcard(*args, **kwargs)
  3826.  
  3827.  
  3828. def Image_RGBtoHSV(*args, **kwargs):
  3829.     '''
  3830.     Image_RGBtoHSV(Image_RGBValue rgb) -> Image_HSVValue
  3831.  
  3832.     Converts a color in RGB color space to HSV color space.
  3833.     '''
  3834.     return _core_.Image_RGBtoHSV(*args, **kwargs)
  3835.  
  3836.  
  3837. def Image_HSVtoRGB(*args, **kwargs):
  3838.     '''
  3839.     Image_HSVtoRGB(Image_HSVValue hsv) -> Image_RGBValue
  3840.  
  3841.     Converts a color in HSV color space to RGB color space.
  3842.     '''
  3843.     return _core_.Image_HSVtoRGB(*args, **kwargs)
  3844.  
  3845.  
  3846. def InitAllImageHandlers():
  3847.     '''
  3848.     The former functionality of InitAllImageHanders is now done internal to
  3849.     the _core_ extension module and so this function has become a simple NOP.
  3850.     '''
  3851.     pass
  3852.  
  3853. IMAGE_RESOLUTION_INCHES = _core_.IMAGE_RESOLUTION_INCHES
  3854. IMAGE_RESOLUTION_CM = _core_.IMAGE_RESOLUTION_CM
  3855. PNG_TYPE_COLOUR = _core_.PNG_TYPE_COLOUR
  3856. PNG_TYPE_GREY = _core_.PNG_TYPE_GREY
  3857. PNG_TYPE_GREY_RED = _core_.PNG_TYPE_GREY_RED
  3858. BMP_24BPP = _core_.BMP_24BPP
  3859. BMP_8BPP = _core_.BMP_8BPP
  3860. BMP_8BPP_GREY = _core_.BMP_8BPP_GREY
  3861. BMP_8BPP_GRAY = _core_.BMP_8BPP_GRAY
  3862. BMP_8BPP_RED = _core_.BMP_8BPP_RED
  3863. BMP_8BPP_PALETTE = _core_.BMP_8BPP_PALETTE
  3864. BMP_4BPP = _core_.BMP_4BPP
  3865. BMP_1BPP = _core_.BMP_1BPP
  3866. BMP_1BPP_BW = _core_.BMP_1BPP_BW
  3867.  
  3868. class BMPHandler(ImageHandler):
  3869.     '''A `wx.ImageHandler` for \\*.bmp bitmap files.'''
  3870.     
  3871.     def __repr__(self):
  3872.         return '<%s.%s; proxy of C++ wxBMPHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3873.  
  3874.     
  3875.     def __init__(self, *args, **kwargs):
  3876.         '''
  3877.         __init__(self) -> BMPHandler
  3878.  
  3879.         A `wx.ImageHandler` for \\*.bmp bitmap files.
  3880.         '''
  3881.         newobj = _core_.new_BMPHandler(*args, **kwargs)
  3882.         self.this = newobj.this
  3883.         self.thisown = 1
  3884.         del newobj.thisown
  3885.  
  3886.  
  3887.  
  3888. class BMPHandlerPtr(BMPHandler):
  3889.     
  3890.     def __init__(self, this):
  3891.         self.this = this
  3892.         if not hasattr(self, 'thisown'):
  3893.             self.thisown = 0
  3894.         
  3895.         self.__class__ = BMPHandler
  3896.  
  3897.  
  3898. _core_.BMPHandler_swigregister(BMPHandlerPtr)
  3899. NullImage = cvar.NullImage
  3900. IMAGE_OPTION_FILENAME = cvar.IMAGE_OPTION_FILENAME
  3901. IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT
  3902. IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X
  3903. IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y
  3904. IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION
  3905. IMAGE_OPTION_RESOLUTIONX = cvar.IMAGE_OPTION_RESOLUTIONX
  3906. IMAGE_OPTION_RESOLUTIONY = cvar.IMAGE_OPTION_RESOLUTIONY
  3907. IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT
  3908. IMAGE_OPTION_QUALITY = cvar.IMAGE_OPTION_QUALITY
  3909. IMAGE_OPTION_BITSPERSAMPLE = cvar.IMAGE_OPTION_BITSPERSAMPLE
  3910. IMAGE_OPTION_SAMPLESPERPIXEL = cvar.IMAGE_OPTION_SAMPLESPERPIXEL
  3911. IMAGE_OPTION_COMPRESSION = cvar.IMAGE_OPTION_COMPRESSION
  3912. IMAGE_OPTION_IMAGEDESCRIPTOR = cvar.IMAGE_OPTION_IMAGEDESCRIPTOR
  3913. IMAGE_OPTION_PNG_FORMAT = cvar.IMAGE_OPTION_PNG_FORMAT
  3914. IMAGE_OPTION_PNG_BITDEPTH = cvar.IMAGE_OPTION_PNG_BITDEPTH
  3915.  
  3916. class ICOHandler(BMPHandler):
  3917.     '''A `wx.ImageHandler` for \\*.ico icon files.'''
  3918.     
  3919.     def __repr__(self):
  3920.         return '<%s.%s; proxy of C++ wxICOHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3921.  
  3922.     
  3923.     def __init__(self, *args, **kwargs):
  3924.         '''
  3925.         __init__(self) -> ICOHandler
  3926.  
  3927.         A `wx.ImageHandler` for \\*.ico icon files.
  3928.         '''
  3929.         newobj = _core_.new_ICOHandler(*args, **kwargs)
  3930.         self.this = newobj.this
  3931.         self.thisown = 1
  3932.         del newobj.thisown
  3933.  
  3934.  
  3935.  
  3936. class ICOHandlerPtr(ICOHandler):
  3937.     
  3938.     def __init__(self, this):
  3939.         self.this = this
  3940.         if not hasattr(self, 'thisown'):
  3941.             self.thisown = 0
  3942.         
  3943.         self.__class__ = ICOHandler
  3944.  
  3945.  
  3946. _core_.ICOHandler_swigregister(ICOHandlerPtr)
  3947.  
  3948. class CURHandler(ICOHandler):
  3949.     '''A `wx.ImageHandler` for \\*.cur cursor files.'''
  3950.     
  3951.     def __repr__(self):
  3952.         return '<%s.%s; proxy of C++ wxCURHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3953.  
  3954.     
  3955.     def __init__(self, *args, **kwargs):
  3956.         '''
  3957.         __init__(self) -> CURHandler
  3958.  
  3959.         A `wx.ImageHandler` for \\*.cur cursor files.
  3960.         '''
  3961.         newobj = _core_.new_CURHandler(*args, **kwargs)
  3962.         self.this = newobj.this
  3963.         self.thisown = 1
  3964.         del newobj.thisown
  3965.  
  3966.  
  3967.  
  3968. class CURHandlerPtr(CURHandler):
  3969.     
  3970.     def __init__(self, this):
  3971.         self.this = this
  3972.         if not hasattr(self, 'thisown'):
  3973.             self.thisown = 0
  3974.         
  3975.         self.__class__ = CURHandler
  3976.  
  3977.  
  3978. _core_.CURHandler_swigregister(CURHandlerPtr)
  3979.  
  3980. class ANIHandler(CURHandler):
  3981.     '''A `wx.ImageHandler` for \\*.ani animated cursor files.'''
  3982.     
  3983.     def __repr__(self):
  3984.         return '<%s.%s; proxy of C++ wxANIHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3985.  
  3986.     
  3987.     def __init__(self, *args, **kwargs):
  3988.         '''
  3989.         __init__(self) -> ANIHandler
  3990.  
  3991.         A `wx.ImageHandler` for \\*.ani animated cursor files.
  3992.         '''
  3993.         newobj = _core_.new_ANIHandler(*args, **kwargs)
  3994.         self.this = newobj.this
  3995.         self.thisown = 1
  3996.         del newobj.thisown
  3997.  
  3998.  
  3999.  
  4000. class ANIHandlerPtr(ANIHandler):
  4001.     
  4002.     def __init__(self, this):
  4003.         self.this = this
  4004.         if not hasattr(self, 'thisown'):
  4005.             self.thisown = 0
  4006.         
  4007.         self.__class__ = ANIHandler
  4008.  
  4009.  
  4010. _core_.ANIHandler_swigregister(ANIHandlerPtr)
  4011.  
  4012. class PNGHandler(ImageHandler):
  4013.     '''A `wx.ImageHandler` for PNG image files.'''
  4014.     
  4015.     def __repr__(self):
  4016.         return '<%s.%s; proxy of C++ wxPNGHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4017.  
  4018.     
  4019.     def __init__(self, *args, **kwargs):
  4020.         '''
  4021.         __init__(self) -> PNGHandler
  4022.  
  4023.         A `wx.ImageHandler` for PNG image files.
  4024.         '''
  4025.         newobj = _core_.new_PNGHandler(*args, **kwargs)
  4026.         self.this = newobj.this
  4027.         self.thisown = 1
  4028.         del newobj.thisown
  4029.  
  4030.  
  4031.  
  4032. class PNGHandlerPtr(PNGHandler):
  4033.     
  4034.     def __init__(self, this):
  4035.         self.this = this
  4036.         if not hasattr(self, 'thisown'):
  4037.             self.thisown = 0
  4038.         
  4039.         self.__class__ = PNGHandler
  4040.  
  4041.  
  4042. _core_.PNGHandler_swigregister(PNGHandlerPtr)
  4043.  
  4044. class GIFHandler(ImageHandler):
  4045.     '''A `wx.ImageHandler` for GIF image files.'''
  4046.     
  4047.     def __repr__(self):
  4048.         return '<%s.%s; proxy of C++ wxGIFHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4049.  
  4050.     
  4051.     def __init__(self, *args, **kwargs):
  4052.         '''
  4053.         __init__(self) -> GIFHandler
  4054.  
  4055.         A `wx.ImageHandler` for GIF image files.
  4056.         '''
  4057.         newobj = _core_.new_GIFHandler(*args, **kwargs)
  4058.         self.this = newobj.this
  4059.         self.thisown = 1
  4060.         del newobj.thisown
  4061.  
  4062.  
  4063.  
  4064. class GIFHandlerPtr(GIFHandler):
  4065.     
  4066.     def __init__(self, this):
  4067.         self.this = this
  4068.         if not hasattr(self, 'thisown'):
  4069.             self.thisown = 0
  4070.         
  4071.         self.__class__ = GIFHandler
  4072.  
  4073.  
  4074. _core_.GIFHandler_swigregister(GIFHandlerPtr)
  4075.  
  4076. class PCXHandler(ImageHandler):
  4077.     '''A `wx.ImageHandler` for PCX imager files.'''
  4078.     
  4079.     def __repr__(self):
  4080.         return '<%s.%s; proxy of C++ wxPCXHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4081.  
  4082.     
  4083.     def __init__(self, *args, **kwargs):
  4084.         '''
  4085.         __init__(self) -> PCXHandler
  4086.  
  4087.         A `wx.ImageHandler` for PCX imager files.
  4088.         '''
  4089.         newobj = _core_.new_PCXHandler(*args, **kwargs)
  4090.         self.this = newobj.this
  4091.         self.thisown = 1
  4092.         del newobj.thisown
  4093.  
  4094.  
  4095.  
  4096. class PCXHandlerPtr(PCXHandler):
  4097.     
  4098.     def __init__(self, this):
  4099.         self.this = this
  4100.         if not hasattr(self, 'thisown'):
  4101.             self.thisown = 0
  4102.         
  4103.         self.__class__ = PCXHandler
  4104.  
  4105.  
  4106. _core_.PCXHandler_swigregister(PCXHandlerPtr)
  4107.  
  4108. class JPEGHandler(ImageHandler):
  4109.     '''A `wx.ImageHandler` for JPEG/JPG image files.'''
  4110.     
  4111.     def __repr__(self):
  4112.         return '<%s.%s; proxy of C++ wxJPEGHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4113.  
  4114.     
  4115.     def __init__(self, *args, **kwargs):
  4116.         '''
  4117.         __init__(self) -> JPEGHandler
  4118.  
  4119.         A `wx.ImageHandler` for JPEG/JPG image files.
  4120.         '''
  4121.         newobj = _core_.new_JPEGHandler(*args, **kwargs)
  4122.         self.this = newobj.this
  4123.         self.thisown = 1
  4124.         del newobj.thisown
  4125.  
  4126.  
  4127.  
  4128. class JPEGHandlerPtr(JPEGHandler):
  4129.     
  4130.     def __init__(self, this):
  4131.         self.this = this
  4132.         if not hasattr(self, 'thisown'):
  4133.             self.thisown = 0
  4134.         
  4135.         self.__class__ = JPEGHandler
  4136.  
  4137.  
  4138. _core_.JPEGHandler_swigregister(JPEGHandlerPtr)
  4139.  
  4140. class PNMHandler(ImageHandler):
  4141.     '''A `wx.ImageHandler` for PNM image files.'''
  4142.     
  4143.     def __repr__(self):
  4144.         return '<%s.%s; proxy of C++ wxPNMHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4145.  
  4146.     
  4147.     def __init__(self, *args, **kwargs):
  4148.         '''
  4149.         __init__(self) -> PNMHandler
  4150.  
  4151.         A `wx.ImageHandler` for PNM image files.
  4152.         '''
  4153.         newobj = _core_.new_PNMHandler(*args, **kwargs)
  4154.         self.this = newobj.this
  4155.         self.thisown = 1
  4156.         del newobj.thisown
  4157.  
  4158.  
  4159.  
  4160. class PNMHandlerPtr(PNMHandler):
  4161.     
  4162.     def __init__(self, this):
  4163.         self.this = this
  4164.         if not hasattr(self, 'thisown'):
  4165.             self.thisown = 0
  4166.         
  4167.         self.__class__ = PNMHandler
  4168.  
  4169.  
  4170. _core_.PNMHandler_swigregister(PNMHandlerPtr)
  4171.  
  4172. class XPMHandler(ImageHandler):
  4173.     '''A `wx.ImageHandler` for XPM image.'''
  4174.     
  4175.     def __repr__(self):
  4176.         return '<%s.%s; proxy of C++ wxXPMHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4177.  
  4178.     
  4179.     def __init__(self, *args, **kwargs):
  4180.         '''
  4181.         __init__(self) -> XPMHandler
  4182.  
  4183.         A `wx.ImageHandler` for XPM image.
  4184.         '''
  4185.         newobj = _core_.new_XPMHandler(*args, **kwargs)
  4186.         self.this = newobj.this
  4187.         self.thisown = 1
  4188.         del newobj.thisown
  4189.  
  4190.  
  4191.  
  4192. class XPMHandlerPtr(XPMHandler):
  4193.     
  4194.     def __init__(self, this):
  4195.         self.this = this
  4196.         if not hasattr(self, 'thisown'):
  4197.             self.thisown = 0
  4198.         
  4199.         self.__class__ = XPMHandler
  4200.  
  4201.  
  4202. _core_.XPMHandler_swigregister(XPMHandlerPtr)
  4203.  
  4204. class TIFFHandler(ImageHandler):
  4205.     '''A `wx.ImageHandler` for TIFF image files.'''
  4206.     
  4207.     def __repr__(self):
  4208.         return '<%s.%s; proxy of C++ wxTIFFHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4209.  
  4210.     
  4211.     def __init__(self, *args, **kwargs):
  4212.         '''
  4213.         __init__(self) -> TIFFHandler
  4214.  
  4215.         A `wx.ImageHandler` for TIFF image files.
  4216.         '''
  4217.         newobj = _core_.new_TIFFHandler(*args, **kwargs)
  4218.         self.this = newobj.this
  4219.         self.thisown = 1
  4220.         del newobj.thisown
  4221.  
  4222.  
  4223.  
  4224. class TIFFHandlerPtr(TIFFHandler):
  4225.     
  4226.     def __init__(self, this):
  4227.         self.this = this
  4228.         if not hasattr(self, 'thisown'):
  4229.             self.thisown = 0
  4230.         
  4231.         self.__class__ = TIFFHandler
  4232.  
  4233.  
  4234. _core_.TIFFHandler_swigregister(TIFFHandlerPtr)
  4235. QUANTIZE_INCLUDE_WINDOWS_COLOURS = _core_.QUANTIZE_INCLUDE_WINDOWS_COLOURS
  4236. QUANTIZE_FILL_DESTINATION_IMAGE = _core_.QUANTIZE_FILL_DESTINATION_IMAGE
  4237.  
  4238. class Quantize(object):
  4239.     '''Performs quantization, or colour reduction, on a wxImage.'''
  4240.     
  4241.     def __init__(self):
  4242.         raise RuntimeError, 'No constructor defined'
  4243.  
  4244.     
  4245.     def __repr__(self):
  4246.         return '<%s.%s; proxy of C++ wxQuantize instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4247.  
  4248.     
  4249.     def Quantize(*args, **kwargs):
  4250.         '''
  4251.         Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
  4252.  
  4253.         Reduce the colours in the source image and put the result into the
  4254.         destination image, setting the palette in the destination if
  4255.         needed. Both images may be the same, to overwrite the source image.
  4256.         '''
  4257.         return _core_.Quantize_Quantize(*args, **kwargs)
  4258.  
  4259.     Quantize = staticmethod(Quantize)
  4260.  
  4261.  
  4262. class QuantizePtr(Quantize):
  4263.     
  4264.     def __init__(self, this):
  4265.         self.this = this
  4266.         if not hasattr(self, 'thisown'):
  4267.             self.thisown = 0
  4268.         
  4269.         self.__class__ = Quantize
  4270.  
  4271.  
  4272. _core_.Quantize_swigregister(QuantizePtr)
  4273.  
  4274. def Quantize_Quantize(*args, **kwargs):
  4275.     '''
  4276.     Quantize_Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool
  4277.  
  4278.     Reduce the colours in the source image and put the result into the
  4279.     destination image, setting the palette in the destination if
  4280.     needed. Both images may be the same, to overwrite the source image.
  4281.     '''
  4282.     return _core_.Quantize_Quantize(*args, **kwargs)
  4283.  
  4284.  
  4285. class EvtHandler(Object):
  4286.     '''Proxy of C++ EvtHandler class'''
  4287.     
  4288.     def __repr__(self):
  4289.         return '<%s.%s; proxy of C++ wxEvtHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4290.  
  4291.     
  4292.     def __init__(self, *args, **kwargs):
  4293.         '''__init__(self) -> EvtHandler'''
  4294.         newobj = _core_.new_EvtHandler(*args, **kwargs)
  4295.         self.this = newobj.this
  4296.         self.thisown = 1
  4297.         del newobj.thisown
  4298.  
  4299.     
  4300.     def GetNextHandler(*args, **kwargs):
  4301.         '''GetNextHandler(self) -> EvtHandler'''
  4302.         return _core_.EvtHandler_GetNextHandler(*args, **kwargs)
  4303.  
  4304.     
  4305.     def GetPreviousHandler(*args, **kwargs):
  4306.         '''GetPreviousHandler(self) -> EvtHandler'''
  4307.         return _core_.EvtHandler_GetPreviousHandler(*args, **kwargs)
  4308.  
  4309.     
  4310.     def SetNextHandler(*args, **kwargs):
  4311.         '''SetNextHandler(self, EvtHandler handler)'''
  4312.         return _core_.EvtHandler_SetNextHandler(*args, **kwargs)
  4313.  
  4314.     
  4315.     def SetPreviousHandler(*args, **kwargs):
  4316.         '''SetPreviousHandler(self, EvtHandler handler)'''
  4317.         return _core_.EvtHandler_SetPreviousHandler(*args, **kwargs)
  4318.  
  4319.     
  4320.     def GetEvtHandlerEnabled(*args, **kwargs):
  4321.         '''GetEvtHandlerEnabled(self) -> bool'''
  4322.         return _core_.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs)
  4323.  
  4324.     
  4325.     def SetEvtHandlerEnabled(*args, **kwargs):
  4326.         '''SetEvtHandlerEnabled(self, bool enabled)'''
  4327.         return _core_.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs)
  4328.  
  4329.     
  4330.     def ProcessEvent(*args, **kwargs):
  4331.         '''ProcessEvent(self, Event event) -> bool'''
  4332.         return _core_.EvtHandler_ProcessEvent(*args, **kwargs)
  4333.  
  4334.     
  4335.     def AddPendingEvent(*args, **kwargs):
  4336.         '''AddPendingEvent(self, Event event)'''
  4337.         return _core_.EvtHandler_AddPendingEvent(*args, **kwargs)
  4338.  
  4339.     
  4340.     def ProcessPendingEvents(*args, **kwargs):
  4341.         '''ProcessPendingEvents(self)'''
  4342.         return _core_.EvtHandler_ProcessPendingEvents(*args, **kwargs)
  4343.  
  4344.     
  4345.     def Connect(*args, **kwargs):
  4346.         '''Connect(self, int id, int lastId, int eventType, PyObject func)'''
  4347.         return _core_.EvtHandler_Connect(*args, **kwargs)
  4348.  
  4349.     
  4350.     def Disconnect(*args, **kwargs):
  4351.         '''Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool'''
  4352.         return _core_.EvtHandler_Disconnect(*args, **kwargs)
  4353.  
  4354.     
  4355.     def _setOORInfo(*args, **kwargs):
  4356.         '''_setOORInfo(self, PyObject _self, bool incref=True)'''
  4357.         return _core_.EvtHandler__setOORInfo(*args, **kwargs)
  4358.  
  4359.     
  4360.     def Bind(self, event, handler, source = None, id = wx.ID_ANY, id2 = wx.ID_ANY):
  4361.         '''
  4362.         Bind an event to an event handler.
  4363.  
  4364.         :param event: One of the EVT_* objects that specifies the
  4365.                       type of event to bind,
  4366.  
  4367.         :param handler: A callable object to be invoked when the
  4368.                       event is delivered to self.  Pass None to
  4369.                       disconnect an event handler.
  4370.  
  4371.         :param source: Sometimes the event originates from a
  4372.                       different window than self, but you still
  4373.                       want to catch it in self.  (For example, a
  4374.                       button event delivered to a frame.)  By
  4375.                       passing the source of the event, the event
  4376.                       handling system is able to differentiate
  4377.                       between the same event type from different
  4378.                       controls.
  4379.  
  4380.         :param id: Used to spcify the event source by ID instead
  4381.                    of instance.
  4382.  
  4383.         :param id2: Used when it is desirable to bind a handler
  4384.                       to a range of IDs, such as with EVT_MENU_RANGE.
  4385.         '''
  4386.         if source is not None:
  4387.             id = source.GetId()
  4388.         
  4389.         event.Bind(self, id, id2, handler)
  4390.  
  4391.     
  4392.     def Unbind(self, event, source = None, id = wx.ID_ANY, id2 = wx.ID_ANY):
  4393.         '''
  4394.         Disconencts the event handler binding for event from self.
  4395.         Returns True if successful.
  4396.         '''
  4397.         if source is not None:
  4398.             id = source.GetId()
  4399.         
  4400.         return event.Unbind(self, id, id2)
  4401.  
  4402.  
  4403.  
  4404. class EvtHandlerPtr(EvtHandler):
  4405.     
  4406.     def __init__(self, this):
  4407.         self.this = this
  4408.         if not hasattr(self, 'thisown'):
  4409.             self.thisown = 0
  4410.         
  4411.         self.__class__ = EvtHandler
  4412.  
  4413.  
  4414. _core_.EvtHandler_swigregister(EvtHandlerPtr)
  4415.  
  4416. class PyEventBinder(object):
  4417.     '''
  4418.     Instances of this class are used to bind specific events to event
  4419.     handlers.
  4420.     '''
  4421.     
  4422.     def __init__(self, evtType, expectedIDs = 0):
  4423.         if expectedIDs not in [
  4424.             0,
  4425.             1,
  4426.             2]:
  4427.             raise ValueError, 'Invalid number of expectedIDs'
  4428.         
  4429.         self.expectedIDs = expectedIDs
  4430.         if type(evtType) == list or type(evtType) == tuple:
  4431.             self.evtType = evtType
  4432.         else:
  4433.             self.evtType = [
  4434.                 evtType]
  4435.  
  4436.     
  4437.     def Bind(self, target, id1, id2, function):
  4438.         '''Bind this set of event types to target.'''
  4439.         for et in self.evtType:
  4440.             target.Connect(id1, id2, et, function)
  4441.         
  4442.  
  4443.     
  4444.     def Unbind(self, target, id1, id2):
  4445.         '''Remove an event binding.'''
  4446.         success = 0
  4447.         for et in self.evtType:
  4448.             success += target.Disconnect(id1, id2, et)
  4449.         
  4450.         return success != 0
  4451.  
  4452.     
  4453.     def __call__(self, *args):
  4454.         '''
  4455.         For backwards compatibility with the old EVT_* functions.
  4456.         Should be called with either (window, func), (window, ID,
  4457.         func) or (window, ID1, ID2, func) parameters depending on the
  4458.         type of the event.
  4459.         '''
  4460.         if not len(args) == 2 + self.expectedIDs:
  4461.             raise AssertionError
  4462.         id1 = wx.ID_ANY
  4463.         id2 = wx.ID_ANY
  4464.         target = args[0]
  4465.         if self.expectedIDs == 0:
  4466.             func = args[1]
  4467.         elif self.expectedIDs == 1:
  4468.             id1 = args[1]
  4469.             func = args[2]
  4470.         elif self.expectedIDs == 2:
  4471.             id1 = args[1]
  4472.             id2 = args[2]
  4473.             func = args[3]
  4474.         else:
  4475.             raise ValueError, 'Unexpected number of IDs'
  4476.         self.Bind(target, id1, id2, func)
  4477.  
  4478.  
  4479.  
  4480. def EVT_COMMAND(win, id, cmd, func):
  4481.     win.Connect(id, -1, cmd, func)
  4482.  
  4483.  
  4484. def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
  4485.     win.Connect(id1, id2, cmd, func)
  4486.  
  4487. EVENT_PROPAGATE_NONE = _core_.EVENT_PROPAGATE_NONE
  4488. EVENT_PROPAGATE_MAX = _core_.EVENT_PROPAGATE_MAX
  4489.  
  4490. def NewEventType(*args, **kwargs):
  4491.     '''NewEventType() -> wxEventType'''
  4492.     return _core_.NewEventType(*args, **kwargs)
  4493.  
  4494. wxEVT_NULL = _core_.wxEVT_NULL
  4495. wxEVT_FIRST = _core_.wxEVT_FIRST
  4496. wxEVT_USER_FIRST = _core_.wxEVT_USER_FIRST
  4497. wxEVT_COMMAND_BUTTON_CLICKED = _core_.wxEVT_COMMAND_BUTTON_CLICKED
  4498. wxEVT_COMMAND_CHECKBOX_CLICKED = _core_.wxEVT_COMMAND_CHECKBOX_CLICKED
  4499. wxEVT_COMMAND_CHOICE_SELECTED = _core_.wxEVT_COMMAND_CHOICE_SELECTED
  4500. wxEVT_COMMAND_LISTBOX_SELECTED = _core_.wxEVT_COMMAND_LISTBOX_SELECTED
  4501. wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core_.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
  4502. wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core_.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
  4503. wxEVT_COMMAND_MENU_SELECTED = _core_.wxEVT_COMMAND_MENU_SELECTED
  4504. wxEVT_COMMAND_TOOL_CLICKED = _core_.wxEVT_COMMAND_TOOL_CLICKED
  4505. wxEVT_COMMAND_SLIDER_UPDATED = _core_.wxEVT_COMMAND_SLIDER_UPDATED
  4506. wxEVT_COMMAND_RADIOBOX_SELECTED = _core_.wxEVT_COMMAND_RADIOBOX_SELECTED
  4507. wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core_.wxEVT_COMMAND_RADIOBUTTON_SELECTED
  4508. wxEVT_COMMAND_SCROLLBAR_UPDATED = _core_.wxEVT_COMMAND_SCROLLBAR_UPDATED
  4509. wxEVT_COMMAND_VLBOX_SELECTED = _core_.wxEVT_COMMAND_VLBOX_SELECTED
  4510. wxEVT_COMMAND_COMBOBOX_SELECTED = _core_.wxEVT_COMMAND_COMBOBOX_SELECTED
  4511. wxEVT_COMMAND_TOOL_RCLICKED = _core_.wxEVT_COMMAND_TOOL_RCLICKED
  4512. wxEVT_COMMAND_TOOL_ENTER = _core_.wxEVT_COMMAND_TOOL_ENTER
  4513. wxEVT_LEFT_DOWN = _core_.wxEVT_LEFT_DOWN
  4514. wxEVT_LEFT_UP = _core_.wxEVT_LEFT_UP
  4515. wxEVT_MIDDLE_DOWN = _core_.wxEVT_MIDDLE_DOWN
  4516. wxEVT_MIDDLE_UP = _core_.wxEVT_MIDDLE_UP
  4517. wxEVT_RIGHT_DOWN = _core_.wxEVT_RIGHT_DOWN
  4518. wxEVT_RIGHT_UP = _core_.wxEVT_RIGHT_UP
  4519. wxEVT_MOTION = _core_.wxEVT_MOTION
  4520. wxEVT_ENTER_WINDOW = _core_.wxEVT_ENTER_WINDOW
  4521. wxEVT_LEAVE_WINDOW = _core_.wxEVT_LEAVE_WINDOW
  4522. wxEVT_LEFT_DCLICK = _core_.wxEVT_LEFT_DCLICK
  4523. wxEVT_MIDDLE_DCLICK = _core_.wxEVT_MIDDLE_DCLICK
  4524. wxEVT_RIGHT_DCLICK = _core_.wxEVT_RIGHT_DCLICK
  4525. wxEVT_SET_FOCUS = _core_.wxEVT_SET_FOCUS
  4526. wxEVT_KILL_FOCUS = _core_.wxEVT_KILL_FOCUS
  4527. wxEVT_CHILD_FOCUS = _core_.wxEVT_CHILD_FOCUS
  4528. wxEVT_MOUSEWHEEL = _core_.wxEVT_MOUSEWHEEL
  4529. wxEVT_NC_LEFT_DOWN = _core_.wxEVT_NC_LEFT_DOWN
  4530. wxEVT_NC_LEFT_UP = _core_.wxEVT_NC_LEFT_UP
  4531. wxEVT_NC_MIDDLE_DOWN = _core_.wxEVT_NC_MIDDLE_DOWN
  4532. wxEVT_NC_MIDDLE_UP = _core_.wxEVT_NC_MIDDLE_UP
  4533. wxEVT_NC_RIGHT_DOWN = _core_.wxEVT_NC_RIGHT_DOWN
  4534. wxEVT_NC_RIGHT_UP = _core_.wxEVT_NC_RIGHT_UP
  4535. wxEVT_NC_MOTION = _core_.wxEVT_NC_MOTION
  4536. wxEVT_NC_ENTER_WINDOW = _core_.wxEVT_NC_ENTER_WINDOW
  4537. wxEVT_NC_LEAVE_WINDOW = _core_.wxEVT_NC_LEAVE_WINDOW
  4538. wxEVT_NC_LEFT_DCLICK = _core_.wxEVT_NC_LEFT_DCLICK
  4539. wxEVT_NC_MIDDLE_DCLICK = _core_.wxEVT_NC_MIDDLE_DCLICK
  4540. wxEVT_NC_RIGHT_DCLICK = _core_.wxEVT_NC_RIGHT_DCLICK
  4541. wxEVT_CHAR = _core_.wxEVT_CHAR
  4542. wxEVT_CHAR_HOOK = _core_.wxEVT_CHAR_HOOK
  4543. wxEVT_NAVIGATION_KEY = _core_.wxEVT_NAVIGATION_KEY
  4544. wxEVT_KEY_DOWN = _core_.wxEVT_KEY_DOWN
  4545. wxEVT_KEY_UP = _core_.wxEVT_KEY_UP
  4546. wxEVT_HOTKEY = _core_.wxEVT_HOTKEY
  4547. wxEVT_SET_CURSOR = _core_.wxEVT_SET_CURSOR
  4548. wxEVT_SCROLL_TOP = _core_.wxEVT_SCROLL_TOP
  4549. wxEVT_SCROLL_BOTTOM = _core_.wxEVT_SCROLL_BOTTOM
  4550. wxEVT_SCROLL_LINEUP = _core_.wxEVT_SCROLL_LINEUP
  4551. wxEVT_SCROLL_LINEDOWN = _core_.wxEVT_SCROLL_LINEDOWN
  4552. wxEVT_SCROLL_PAGEUP = _core_.wxEVT_SCROLL_PAGEUP
  4553. wxEVT_SCROLL_PAGEDOWN = _core_.wxEVT_SCROLL_PAGEDOWN
  4554. wxEVT_SCROLL_THUMBTRACK = _core_.wxEVT_SCROLL_THUMBTRACK
  4555. wxEVT_SCROLL_THUMBRELEASE = _core_.wxEVT_SCROLL_THUMBRELEASE
  4556. wxEVT_SCROLL_CHANGED = _core_.wxEVT_SCROLL_CHANGED
  4557. wxEVT_SCROLL_ENDSCROLL = wxEVT_SCROLL_CHANGED
  4558. wxEVT_SCROLLWIN_TOP = _core_.wxEVT_SCROLLWIN_TOP
  4559. wxEVT_SCROLLWIN_BOTTOM = _core_.wxEVT_SCROLLWIN_BOTTOM
  4560. wxEVT_SCROLLWIN_LINEUP = _core_.wxEVT_SCROLLWIN_LINEUP
  4561. wxEVT_SCROLLWIN_LINEDOWN = _core_.wxEVT_SCROLLWIN_LINEDOWN
  4562. wxEVT_SCROLLWIN_PAGEUP = _core_.wxEVT_SCROLLWIN_PAGEUP
  4563. wxEVT_SCROLLWIN_PAGEDOWN = _core_.wxEVT_SCROLLWIN_PAGEDOWN
  4564. wxEVT_SCROLLWIN_THUMBTRACK = _core_.wxEVT_SCROLLWIN_THUMBTRACK
  4565. wxEVT_SCROLLWIN_THUMBRELEASE = _core_.wxEVT_SCROLLWIN_THUMBRELEASE
  4566. wxEVT_SIZE = _core_.wxEVT_SIZE
  4567. wxEVT_MOVE = _core_.wxEVT_MOVE
  4568. wxEVT_CLOSE_WINDOW = _core_.wxEVT_CLOSE_WINDOW
  4569. wxEVT_END_SESSION = _core_.wxEVT_END_SESSION
  4570. wxEVT_QUERY_END_SESSION = _core_.wxEVT_QUERY_END_SESSION
  4571. wxEVT_ACTIVATE_APP = _core_.wxEVT_ACTIVATE_APP
  4572. wxEVT_POWER = _core_.wxEVT_POWER
  4573. wxEVT_ACTIVATE = _core_.wxEVT_ACTIVATE
  4574. wxEVT_CREATE = _core_.wxEVT_CREATE
  4575. wxEVT_DESTROY = _core_.wxEVT_DESTROY
  4576. wxEVT_SHOW = _core_.wxEVT_SHOW
  4577. wxEVT_ICONIZE = _core_.wxEVT_ICONIZE
  4578. wxEVT_MAXIMIZE = _core_.wxEVT_MAXIMIZE
  4579. wxEVT_MOUSE_CAPTURE_CHANGED = _core_.wxEVT_MOUSE_CAPTURE_CHANGED
  4580. wxEVT_PAINT = _core_.wxEVT_PAINT
  4581. wxEVT_ERASE_BACKGROUND = _core_.wxEVT_ERASE_BACKGROUND
  4582. wxEVT_NC_PAINT = _core_.wxEVT_NC_PAINT
  4583. wxEVT_PAINT_ICON = _core_.wxEVT_PAINT_ICON
  4584. wxEVT_MENU_OPEN = _core_.wxEVT_MENU_OPEN
  4585. wxEVT_MENU_CLOSE = _core_.wxEVT_MENU_CLOSE
  4586. wxEVT_MENU_HIGHLIGHT = _core_.wxEVT_MENU_HIGHLIGHT
  4587. wxEVT_CONTEXT_MENU = _core_.wxEVT_CONTEXT_MENU
  4588. wxEVT_SYS_COLOUR_CHANGED = _core_.wxEVT_SYS_COLOUR_CHANGED
  4589. wxEVT_DISPLAY_CHANGED = _core_.wxEVT_DISPLAY_CHANGED
  4590. wxEVT_SETTING_CHANGED = _core_.wxEVT_SETTING_CHANGED
  4591. wxEVT_QUERY_NEW_PALETTE = _core_.wxEVT_QUERY_NEW_PALETTE
  4592. wxEVT_PALETTE_CHANGED = _core_.wxEVT_PALETTE_CHANGED
  4593. wxEVT_DROP_FILES = _core_.wxEVT_DROP_FILES
  4594. wxEVT_DRAW_ITEM = _core_.wxEVT_DRAW_ITEM
  4595. wxEVT_MEASURE_ITEM = _core_.wxEVT_MEASURE_ITEM
  4596. wxEVT_COMPARE_ITEM = _core_.wxEVT_COMPARE_ITEM
  4597. wxEVT_INIT_DIALOG = _core_.wxEVT_INIT_DIALOG
  4598. wxEVT_IDLE = _core_.wxEVT_IDLE
  4599. wxEVT_UPDATE_UI = _core_.wxEVT_UPDATE_UI
  4600. wxEVT_SIZING = _core_.wxEVT_SIZING
  4601. wxEVT_MOVING = _core_.wxEVT_MOVING
  4602. wxEVT_HIBERNATE = _core_.wxEVT_HIBERNATE
  4603. wxEVT_COMMAND_LEFT_CLICK = _core_.wxEVT_COMMAND_LEFT_CLICK
  4604. wxEVT_COMMAND_LEFT_DCLICK = _core_.wxEVT_COMMAND_LEFT_DCLICK
  4605. wxEVT_COMMAND_RIGHT_CLICK = _core_.wxEVT_COMMAND_RIGHT_CLICK
  4606. wxEVT_COMMAND_RIGHT_DCLICK = _core_.wxEVT_COMMAND_RIGHT_DCLICK
  4607. wxEVT_COMMAND_SET_FOCUS = _core_.wxEVT_COMMAND_SET_FOCUS
  4608. wxEVT_COMMAND_KILL_FOCUS = _core_.wxEVT_COMMAND_KILL_FOCUS
  4609. wxEVT_COMMAND_ENTER = _core_.wxEVT_COMMAND_ENTER
  4610. EVT_SIZE = wx.PyEventBinder(wxEVT_SIZE)
  4611. EVT_SIZING = wx.PyEventBinder(wxEVT_SIZING)
  4612. EVT_MOVE = wx.PyEventBinder(wxEVT_MOVE)
  4613. EVT_MOVING = wx.PyEventBinder(wxEVT_MOVING)
  4614. EVT_CLOSE = wx.PyEventBinder(wxEVT_CLOSE_WINDOW)
  4615. EVT_END_SESSION = wx.PyEventBinder(wxEVT_END_SESSION)
  4616. EVT_QUERY_END_SESSION = wx.PyEventBinder(wxEVT_QUERY_END_SESSION)
  4617. EVT_PAINT = wx.PyEventBinder(wxEVT_PAINT)
  4618. EVT_NC_PAINT = wx.PyEventBinder(wxEVT_NC_PAINT)
  4619. EVT_ERASE_BACKGROUND = wx.PyEventBinder(wxEVT_ERASE_BACKGROUND)
  4620. EVT_CHAR = wx.PyEventBinder(wxEVT_CHAR)
  4621. EVT_KEY_DOWN = wx.PyEventBinder(wxEVT_KEY_DOWN)
  4622. EVT_KEY_UP = wx.PyEventBinder(wxEVT_KEY_UP)
  4623. EVT_HOTKEY = wx.PyEventBinder(wxEVT_HOTKEY, 1)
  4624. EVT_CHAR_HOOK = wx.PyEventBinder(wxEVT_CHAR_HOOK)
  4625. EVT_MENU_OPEN = wx.PyEventBinder(wxEVT_MENU_OPEN)
  4626. EVT_MENU_CLOSE = wx.PyEventBinder(wxEVT_MENU_CLOSE)
  4627. EVT_MENU_HIGHLIGHT = wx.PyEventBinder(wxEVT_MENU_HIGHLIGHT, 1)
  4628. EVT_MENU_HIGHLIGHT_ALL = wx.PyEventBinder(wxEVT_MENU_HIGHLIGHT)
  4629. EVT_SET_FOCUS = wx.PyEventBinder(wxEVT_SET_FOCUS)
  4630. EVT_KILL_FOCUS = wx.PyEventBinder(wxEVT_KILL_FOCUS)
  4631. EVT_CHILD_FOCUS = wx.PyEventBinder(wxEVT_CHILD_FOCUS)
  4632. EVT_ACTIVATE = wx.PyEventBinder(wxEVT_ACTIVATE)
  4633. EVT_ACTIVATE_APP = wx.PyEventBinder(wxEVT_ACTIVATE_APP)
  4634. EVT_HIBERNATE = wx.PyEventBinder(wxEVT_HIBERNATE)
  4635. EVT_END_SESSION = wx.PyEventBinder(wxEVT_END_SESSION)
  4636. EVT_QUERY_END_SESSION = wx.PyEventBinder(wxEVT_QUERY_END_SESSION)
  4637. EVT_DROP_FILES = wx.PyEventBinder(wxEVT_DROP_FILES)
  4638. EVT_INIT_DIALOG = wx.PyEventBinder(wxEVT_INIT_DIALOG)
  4639. EVT_SYS_COLOUR_CHANGED = wx.PyEventBinder(wxEVT_SYS_COLOUR_CHANGED)
  4640. EVT_DISPLAY_CHANGED = wx.PyEventBinder(wxEVT_DISPLAY_CHANGED)
  4641. EVT_SHOW = wx.PyEventBinder(wxEVT_SHOW)
  4642. EVT_MAXIMIZE = wx.PyEventBinder(wxEVT_MAXIMIZE)
  4643. EVT_ICONIZE = wx.PyEventBinder(wxEVT_ICONIZE)
  4644. EVT_NAVIGATION_KEY = wx.PyEventBinder(wxEVT_NAVIGATION_KEY)
  4645. EVT_PALETTE_CHANGED = wx.PyEventBinder(wxEVT_PALETTE_CHANGED)
  4646. EVT_QUERY_NEW_PALETTE = wx.PyEventBinder(wxEVT_QUERY_NEW_PALETTE)
  4647. EVT_WINDOW_CREATE = wx.PyEventBinder(wxEVT_CREATE)
  4648. EVT_WINDOW_DESTROY = wx.PyEventBinder(wxEVT_DESTROY)
  4649. EVT_SET_CURSOR = wx.PyEventBinder(wxEVT_SET_CURSOR)
  4650. EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder(wxEVT_MOUSE_CAPTURE_CHANGED)
  4651. EVT_LEFT_DOWN = wx.PyEventBinder(wxEVT_LEFT_DOWN)
  4652. EVT_LEFT_UP = wx.PyEventBinder(wxEVT_LEFT_UP)
  4653. EVT_MIDDLE_DOWN = wx.PyEventBinder(wxEVT_MIDDLE_DOWN)
  4654. EVT_MIDDLE_UP = wx.PyEventBinder(wxEVT_MIDDLE_UP)
  4655. EVT_RIGHT_DOWN = wx.PyEventBinder(wxEVT_RIGHT_DOWN)
  4656. EVT_RIGHT_UP = wx.PyEventBinder(wxEVT_RIGHT_UP)
  4657. EVT_MOTION = wx.PyEventBinder(wxEVT_MOTION)
  4658. EVT_LEFT_DCLICK = wx.PyEventBinder(wxEVT_LEFT_DCLICK)
  4659. EVT_MIDDLE_DCLICK = wx.PyEventBinder(wxEVT_MIDDLE_DCLICK)
  4660. EVT_RIGHT_DCLICK = wx.PyEventBinder(wxEVT_RIGHT_DCLICK)
  4661. EVT_LEAVE_WINDOW = wx.PyEventBinder(wxEVT_LEAVE_WINDOW)
  4662. EVT_ENTER_WINDOW = wx.PyEventBinder(wxEVT_ENTER_WINDOW)
  4663. EVT_MOUSEWHEEL = wx.PyEventBinder(wxEVT_MOUSEWHEEL)
  4664. EVT_MOUSE_EVENTS = wx.PyEventBinder([
  4665.     wxEVT_LEFT_DOWN,
  4666.     wxEVT_LEFT_UP,
  4667.     wxEVT_MIDDLE_DOWN,
  4668.     wxEVT_MIDDLE_UP,
  4669.     wxEVT_RIGHT_DOWN,
  4670.     wxEVT_RIGHT_UP,
  4671.     wxEVT_MOTION,
  4672.     wxEVT_LEFT_DCLICK,
  4673.     wxEVT_MIDDLE_DCLICK,
  4674.     wxEVT_RIGHT_DCLICK,
  4675.     wxEVT_ENTER_WINDOW,
  4676.     wxEVT_LEAVE_WINDOW,
  4677.     wxEVT_MOUSEWHEEL])
  4678. EVT_SCROLLWIN = wx.PyEventBinder([
  4679.     wxEVT_SCROLLWIN_TOP,
  4680.     wxEVT_SCROLLWIN_BOTTOM,
  4681.     wxEVT_SCROLLWIN_LINEUP,
  4682.     wxEVT_SCROLLWIN_LINEDOWN,
  4683.     wxEVT_SCROLLWIN_PAGEUP,
  4684.     wxEVT_SCROLLWIN_PAGEDOWN,
  4685.     wxEVT_SCROLLWIN_THUMBTRACK,
  4686.     wxEVT_SCROLLWIN_THUMBRELEASE])
  4687. EVT_SCROLLWIN_TOP = wx.PyEventBinder(wxEVT_SCROLLWIN_TOP)
  4688. EVT_SCROLLWIN_BOTTOM = wx.PyEventBinder(wxEVT_SCROLLWIN_BOTTOM)
  4689. EVT_SCROLLWIN_LINEUP = wx.PyEventBinder(wxEVT_SCROLLWIN_LINEUP)
  4690. EVT_SCROLLWIN_LINEDOWN = wx.PyEventBinder(wxEVT_SCROLLWIN_LINEDOWN)
  4691. EVT_SCROLLWIN_PAGEUP = wx.PyEventBinder(wxEVT_SCROLLWIN_PAGEUP)
  4692. EVT_SCROLLWIN_PAGEDOWN = wx.PyEventBinder(wxEVT_SCROLLWIN_PAGEDOWN)
  4693. EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder(wxEVT_SCROLLWIN_THUMBTRACK)
  4694. EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder(wxEVT_SCROLLWIN_THUMBRELEASE)
  4695. EVT_SCROLL = wx.PyEventBinder([
  4696.     wxEVT_SCROLL_TOP,
  4697.     wxEVT_SCROLL_BOTTOM,
  4698.     wxEVT_SCROLL_LINEUP,
  4699.     wxEVT_SCROLL_LINEDOWN,
  4700.     wxEVT_SCROLL_PAGEUP,
  4701.     wxEVT_SCROLL_PAGEDOWN,
  4702.     wxEVT_SCROLL_THUMBTRACK,
  4703.     wxEVT_SCROLL_THUMBRELEASE,
  4704.     wxEVT_SCROLL_CHANGED])
  4705. EVT_SCROLL_TOP = wx.PyEventBinder(wxEVT_SCROLL_TOP)
  4706. EVT_SCROLL_BOTTOM = wx.PyEventBinder(wxEVT_SCROLL_BOTTOM)
  4707. EVT_SCROLL_LINEUP = wx.PyEventBinder(wxEVT_SCROLL_LINEUP)
  4708. EVT_SCROLL_LINEDOWN = wx.PyEventBinder(wxEVT_SCROLL_LINEDOWN)
  4709. EVT_SCROLL_PAGEUP = wx.PyEventBinder(wxEVT_SCROLL_PAGEUP)
  4710. EVT_SCROLL_PAGEDOWN = wx.PyEventBinder(wxEVT_SCROLL_PAGEDOWN)
  4711. EVT_SCROLL_THUMBTRACK = wx.PyEventBinder(wxEVT_SCROLL_THUMBTRACK)
  4712. EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder(wxEVT_SCROLL_THUMBRELEASE)
  4713. EVT_SCROLL_CHANGED = wx.PyEventBinder(wxEVT_SCROLL_CHANGED)
  4714. EVT_SCROLL_ENDSCROLL = EVT_SCROLL_CHANGED
  4715. EVT_COMMAND_SCROLL = wx.PyEventBinder([
  4716.     wxEVT_SCROLL_TOP,
  4717.     wxEVT_SCROLL_BOTTOM,
  4718.     wxEVT_SCROLL_LINEUP,
  4719.     wxEVT_SCROLL_LINEDOWN,
  4720.     wxEVT_SCROLL_PAGEUP,
  4721.     wxEVT_SCROLL_PAGEDOWN,
  4722.     wxEVT_SCROLL_THUMBTRACK,
  4723.     wxEVT_SCROLL_THUMBRELEASE,
  4724.     wxEVT_SCROLL_CHANGED], 1)
  4725. EVT_COMMAND_SCROLL_TOP = wx.PyEventBinder(wxEVT_SCROLL_TOP, 1)
  4726. EVT_COMMAND_SCROLL_BOTTOM = wx.PyEventBinder(wxEVT_SCROLL_BOTTOM, 1)
  4727. EVT_COMMAND_SCROLL_LINEUP = wx.PyEventBinder(wxEVT_SCROLL_LINEUP, 1)
  4728. EVT_COMMAND_SCROLL_LINEDOWN = wx.PyEventBinder(wxEVT_SCROLL_LINEDOWN, 1)
  4729. EVT_COMMAND_SCROLL_PAGEUP = wx.PyEventBinder(wxEVT_SCROLL_PAGEUP, 1)
  4730. EVT_COMMAND_SCROLL_PAGEDOWN = wx.PyEventBinder(wxEVT_SCROLL_PAGEDOWN, 1)
  4731. EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder(wxEVT_SCROLL_THUMBTRACK, 1)
  4732. EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder(wxEVT_SCROLL_THUMBRELEASE, 1)
  4733. EVT_COMMAND_SCROLL_CHANGED = wx.PyEventBinder(wxEVT_SCROLL_CHANGED, 1)
  4734. EVT_COMMAND_SCROLL_ENDSCROLL = EVT_COMMAND_SCROLL_CHANGED
  4735. EVT_BUTTON = wx.PyEventBinder(wxEVT_COMMAND_BUTTON_CLICKED, 1)
  4736. EVT_CHECKBOX = wx.PyEventBinder(wxEVT_COMMAND_CHECKBOX_CLICKED, 1)
  4737. EVT_CHOICE = wx.PyEventBinder(wxEVT_COMMAND_CHOICE_SELECTED, 1)
  4738. EVT_LISTBOX = wx.PyEventBinder(wxEVT_COMMAND_LISTBOX_SELECTED, 1)
  4739. EVT_LISTBOX_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 1)
  4740. EVT_MENU = wx.PyEventBinder(wxEVT_COMMAND_MENU_SELECTED, 1)
  4741. EVT_MENU_RANGE = wx.PyEventBinder(wxEVT_COMMAND_MENU_SELECTED, 2)
  4742. EVT_SLIDER = wx.PyEventBinder(wxEVT_COMMAND_SLIDER_UPDATED, 1)
  4743. EVT_RADIOBOX = wx.PyEventBinder(wxEVT_COMMAND_RADIOBOX_SELECTED, 1)
  4744. EVT_RADIOBUTTON = wx.PyEventBinder(wxEVT_COMMAND_RADIOBUTTON_SELECTED, 1)
  4745. EVT_SCROLLBAR = wx.PyEventBinder(wxEVT_COMMAND_SCROLLBAR_UPDATED, 1)
  4746. EVT_VLBOX = wx.PyEventBinder(wxEVT_COMMAND_VLBOX_SELECTED, 1)
  4747. EVT_COMBOBOX = wx.PyEventBinder(wxEVT_COMMAND_COMBOBOX_SELECTED, 1)
  4748. EVT_TOOL = wx.PyEventBinder(wxEVT_COMMAND_TOOL_CLICKED, 1)
  4749. EVT_TOOL_RANGE = wx.PyEventBinder(wxEVT_COMMAND_TOOL_CLICKED, 2)
  4750. EVT_TOOL_RCLICKED = wx.PyEventBinder(wxEVT_COMMAND_TOOL_RCLICKED, 1)
  4751. EVT_TOOL_RCLICKED_RANGE = wx.PyEventBinder(wxEVT_COMMAND_TOOL_RCLICKED, 2)
  4752. EVT_TOOL_ENTER = wx.PyEventBinder(wxEVT_COMMAND_TOOL_ENTER, 1)
  4753. EVT_CHECKLISTBOX = wx.PyEventBinder(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 1)
  4754. EVT_COMMAND_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LEFT_CLICK, 1)
  4755. EVT_COMMAND_LEFT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_LEFT_DCLICK, 1)
  4756. EVT_COMMAND_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RIGHT_CLICK, 1)
  4757. EVT_COMMAND_RIGHT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_RIGHT_DCLICK, 1)
  4758. EVT_COMMAND_SET_FOCUS = wx.PyEventBinder(wxEVT_COMMAND_SET_FOCUS, 1)
  4759. EVT_COMMAND_KILL_FOCUS = wx.PyEventBinder(wxEVT_COMMAND_KILL_FOCUS, 1)
  4760. EVT_COMMAND_ENTER = wx.PyEventBinder(wxEVT_COMMAND_ENTER, 1)
  4761. EVT_IDLE = wx.PyEventBinder(wxEVT_IDLE)
  4762. EVT_UPDATE_UI = wx.PyEventBinder(wxEVT_UPDATE_UI, 1)
  4763. EVT_UPDATE_UI_RANGE = wx.PyEventBinder(wxEVT_UPDATE_UI, 2)
  4764. EVT_CONTEXT_MENU = wx.PyEventBinder(wxEVT_CONTEXT_MENU)
  4765.  
  4766. class Event(Object):
  4767.     '''
  4768.     An event is a structure holding information about an event passed to a
  4769.     callback or member function. wx.Event is an abstract base class for
  4770.     other event classes
  4771.     '''
  4772.     
  4773.     def __init__(self):
  4774.         raise RuntimeError, 'No constructor defined'
  4775.  
  4776.     
  4777.     def __repr__(self):
  4778.         return '<%s.%s; proxy of C++ wxEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4779.  
  4780.     
  4781.     def __del__(self, destroy = _core_.delete_Event):
  4782.         '''__del__(self)'''
  4783.         
  4784.         try:
  4785.             if self.thisown:
  4786.                 destroy(self)
  4787.         except:
  4788.             pass
  4789.  
  4790.  
  4791.     
  4792.     def SetEventType(*args, **kwargs):
  4793.         '''
  4794.         SetEventType(self, wxEventType typ)
  4795.  
  4796.         Sets the specific type of the event.
  4797.         '''
  4798.         return _core_.Event_SetEventType(*args, **kwargs)
  4799.  
  4800.     
  4801.     def GetEventType(*args, **kwargs):
  4802.         '''
  4803.         GetEventType(self) -> wxEventType
  4804.  
  4805.         Returns the identifier of the given event type, such as
  4806.         ``wxEVT_COMMAND_BUTTON_CLICKED``.
  4807.         '''
  4808.         return _core_.Event_GetEventType(*args, **kwargs)
  4809.  
  4810.     
  4811.     def GetEventObject(*args, **kwargs):
  4812.         '''
  4813.         GetEventObject(self) -> Object
  4814.  
  4815.         Returns the object (usually a window) associated with the event, if
  4816.         any.
  4817.         '''
  4818.         return _core_.Event_GetEventObject(*args, **kwargs)
  4819.  
  4820.     
  4821.     def SetEventObject(*args, **kwargs):
  4822.         '''
  4823.         SetEventObject(self, Object obj)
  4824.  
  4825.         Sets the originating object, or in other words, obj is normally the
  4826.         object that is sending the event.
  4827.         '''
  4828.         return _core_.Event_SetEventObject(*args, **kwargs)
  4829.  
  4830.     
  4831.     def GetTimestamp(*args, **kwargs):
  4832.         '''GetTimestamp(self) -> long'''
  4833.         return _core_.Event_GetTimestamp(*args, **kwargs)
  4834.  
  4835.     
  4836.     def SetTimestamp(*args, **kwargs):
  4837.         '''SetTimestamp(self, long ts=0)'''
  4838.         return _core_.Event_SetTimestamp(*args, **kwargs)
  4839.  
  4840.     
  4841.     def GetId(*args, **kwargs):
  4842.         '''
  4843.         GetId(self) -> int
  4844.  
  4845.         Returns the identifier associated with this event, such as a button
  4846.         command id.
  4847.         '''
  4848.         return _core_.Event_GetId(*args, **kwargs)
  4849.  
  4850.     
  4851.     def SetId(*args, **kwargs):
  4852.         """
  4853.         SetId(self, int Id)
  4854.  
  4855.         Set's the ID for the event.  This is usually the ID of the window that
  4856.         is sending the event, but it can also be a command id from a menu
  4857.         item, etc.
  4858.         """
  4859.         return _core_.Event_SetId(*args, **kwargs)
  4860.  
  4861.     
  4862.     def IsCommandEvent(*args, **kwargs):
  4863.         '''
  4864.         IsCommandEvent(self) -> bool
  4865.  
  4866.         Returns true if the event is or is derived from `wx.CommandEvent` else
  4867.         it returns false. Note: Exists only for optimization purposes.
  4868.         '''
  4869.         return _core_.Event_IsCommandEvent(*args, **kwargs)
  4870.  
  4871.     
  4872.     def Skip(*args, **kwargs):
  4873.         '''
  4874.         Skip(self, bool skip=True)
  4875.  
  4876.         Called by an event handler, it controls whether additional event
  4877.         handlers bound to this event will be called after the current event
  4878.         handler returns.  Skip(false) (the default setting) will prevent
  4879.         additional event handlers from being called and control will be
  4880.         returned to the sender of the event immediately after the current
  4881.         handler has finished.  Skip(True) will cause the event processing
  4882.         system to continue searching for a handler function for this event.
  4883.  
  4884.         '''
  4885.         return _core_.Event_Skip(*args, **kwargs)
  4886.  
  4887.     
  4888.     def GetSkipped(*args, **kwargs):
  4889.         '''
  4890.         GetSkipped(self) -> bool
  4891.  
  4892.         Returns true if the event handler should be skipped, false otherwise.
  4893.         :see: `Skip`
  4894.         '''
  4895.         return _core_.Event_GetSkipped(*args, **kwargs)
  4896.  
  4897.     
  4898.     def ShouldPropagate(*args, **kwargs):
  4899.         '''
  4900.         ShouldPropagate(self) -> bool
  4901.  
  4902.         Test if this event should be propagated to the parent window or not,
  4903.         i.e. if the propagation level is currently greater than 0.
  4904.         '''
  4905.         return _core_.Event_ShouldPropagate(*args, **kwargs)
  4906.  
  4907.     
  4908.     def StopPropagation(*args, **kwargs):
  4909.         '''
  4910.         StopPropagation(self) -> int
  4911.  
  4912.         Stop the event from propagating to its parent window.  Returns the old
  4913.         propagation level value which may be later passed to
  4914.         `ResumePropagation` to allow propagating the event again.
  4915.         '''
  4916.         return _core_.Event_StopPropagation(*args, **kwargs)
  4917.  
  4918.     
  4919.     def ResumePropagation(*args, **kwargs):
  4920.         '''
  4921.         ResumePropagation(self, int propagationLevel)
  4922.  
  4923.         Resume the event propagation by restoring the propagation level.  (For
  4924.         example, you can use the value returned by an earlier call to
  4925.         `StopPropagation`.)
  4926.  
  4927.         '''
  4928.         return _core_.Event_ResumePropagation(*args, **kwargs)
  4929.  
  4930.     
  4931.     def Clone(*args, **kwargs):
  4932.         '''Clone(self) -> Event'''
  4933.         return _core_.Event_Clone(*args, **kwargs)
  4934.  
  4935.  
  4936.  
  4937. class EventPtr(Event):
  4938.     
  4939.     def __init__(self, this):
  4940.         self.this = this
  4941.         if not hasattr(self, 'thisown'):
  4942.             self.thisown = 0
  4943.         
  4944.         self.__class__ = Event
  4945.  
  4946.  
  4947. _core_.Event_swigregister(EventPtr)
  4948.  
  4949. class PropagationDisabler(object):
  4950.     '''
  4951.     Helper class to temporarily change an event not to propagate.  Simply
  4952.     create an instance of this class and then whe it is destroyed the
  4953.     propogation of the event will be restored.
  4954.     '''
  4955.     
  4956.     def __repr__(self):
  4957.         return '<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4958.  
  4959.     
  4960.     def __init__(self, *args, **kwargs):
  4961.         '''
  4962.         __init__(self, Event event) -> PropagationDisabler
  4963.  
  4964.         Helper class to temporarily change an event not to propagate.  Simply
  4965.         create an instance of this class and then whe it is destroyed the
  4966.         propogation of the event will be restored.
  4967.         '''
  4968.         newobj = _core_.new_PropagationDisabler(*args, **kwargs)
  4969.         self.this = newobj.this
  4970.         self.thisown = 1
  4971.         del newobj.thisown
  4972.  
  4973.     
  4974.     def __del__(self, destroy = _core_.delete_PropagationDisabler):
  4975.         '''__del__(self)'''
  4976.         
  4977.         try:
  4978.             if self.thisown:
  4979.                 destroy(self)
  4980.         except:
  4981.             pass
  4982.  
  4983.  
  4984.  
  4985.  
  4986. class PropagationDisablerPtr(PropagationDisabler):
  4987.     
  4988.     def __init__(self, this):
  4989.         self.this = this
  4990.         if not hasattr(self, 'thisown'):
  4991.             self.thisown = 0
  4992.         
  4993.         self.__class__ = PropagationDisabler
  4994.  
  4995.  
  4996. _core_.PropagationDisabler_swigregister(PropagationDisablerPtr)
  4997.  
  4998. class PropagateOnce(object):
  4999.     '''
  5000.     A helper class that will temporarily lower propagation level of an
  5001.     event.  Simply create an instance of this class and then whe it is
  5002.     destroyed the propogation of the event will be restored.
  5003.     '''
  5004.     
  5005.     def __repr__(self):
  5006.         return '<%s.%s; proxy of C++ wxPropagateOnce instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5007.  
  5008.     
  5009.     def __init__(self, *args, **kwargs):
  5010.         '''
  5011.         __init__(self, Event event) -> PropagateOnce
  5012.  
  5013.         A helper class that will temporarily lower propagation level of an
  5014.         event.  Simply create an instance of this class and then whe it is
  5015.         destroyed the propogation of the event will be restored.
  5016.         '''
  5017.         newobj = _core_.new_PropagateOnce(*args, **kwargs)
  5018.         self.this = newobj.this
  5019.         self.thisown = 1
  5020.         del newobj.thisown
  5021.  
  5022.     
  5023.     def __del__(self, destroy = _core_.delete_PropagateOnce):
  5024.         '''__del__(self)'''
  5025.         
  5026.         try:
  5027.             if self.thisown:
  5028.                 destroy(self)
  5029.         except:
  5030.             pass
  5031.  
  5032.  
  5033.  
  5034.  
  5035. class PropagateOncePtr(PropagateOnce):
  5036.     
  5037.     def __init__(self, this):
  5038.         self.this = this
  5039.         if not hasattr(self, 'thisown'):
  5040.             self.thisown = 0
  5041.         
  5042.         self.__class__ = PropagateOnce
  5043.  
  5044.  
  5045. _core_.PropagateOnce_swigregister(PropagateOncePtr)
  5046.  
  5047. class CommandEvent(Event):
  5048.     '''
  5049.     This event class contains information about command events, which
  5050.     originate from a variety of simple controls, as well as menus and
  5051.     toolbars.
  5052.     '''
  5053.     
  5054.     def __repr__(self):
  5055.         return '<%s.%s; proxy of C++ wxCommandEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5056.  
  5057.     
  5058.     def __init__(self, *args, **kwargs):
  5059.         '''
  5060.         __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent
  5061.  
  5062.         This event class contains information about command events, which
  5063.         originate from a variety of simple controls, as well as menus and
  5064.         toolbars.
  5065.         '''
  5066.         newobj = _core_.new_CommandEvent(*args, **kwargs)
  5067.         self.this = newobj.this
  5068.         self.thisown = 1
  5069.         del newobj.thisown
  5070.  
  5071.     
  5072.     def GetSelection(*args, **kwargs):
  5073.         '''
  5074.         GetSelection(self) -> int
  5075.  
  5076.         Returns item index for a listbox or choice selection event (not valid
  5077.         for a deselection).
  5078.         '''
  5079.         return _core_.CommandEvent_GetSelection(*args, **kwargs)
  5080.  
  5081.     
  5082.     def SetString(*args, **kwargs):
  5083.         '''SetString(self, String s)'''
  5084.         return _core_.CommandEvent_SetString(*args, **kwargs)
  5085.  
  5086.     
  5087.     def GetString(*args, **kwargs):
  5088.         '''
  5089.         GetString(self) -> String
  5090.  
  5091.         Returns item string for a listbox or choice selection event (not valid
  5092.         for a deselection).
  5093.         '''
  5094.         return _core_.CommandEvent_GetString(*args, **kwargs)
  5095.  
  5096.     
  5097.     def IsChecked(*args, **kwargs):
  5098.         '''
  5099.         IsChecked(self) -> bool
  5100.  
  5101.         This method can be used with checkbox and menu events: for the
  5102.         checkboxes, the method returns true for a selection event and false
  5103.         for a deselection one. For the menu events, this method indicates if
  5104.         the menu item just has become checked or unchecked (and thus only
  5105.         makes sense for checkable menu items).
  5106.         '''
  5107.         return _core_.CommandEvent_IsChecked(*args, **kwargs)
  5108.  
  5109.     Checked = IsChecked
  5110.     
  5111.     def IsSelection(*args, **kwargs):
  5112.         '''
  5113.         IsSelection(self) -> bool
  5114.  
  5115.         For a listbox or similar event, returns true if it is a selection,
  5116.         false if it is a deselection.
  5117.         '''
  5118.         return _core_.CommandEvent_IsSelection(*args, **kwargs)
  5119.  
  5120.     
  5121.     def SetExtraLong(*args, **kwargs):
  5122.         '''SetExtraLong(self, long extraLong)'''
  5123.         return _core_.CommandEvent_SetExtraLong(*args, **kwargs)
  5124.  
  5125.     
  5126.     def GetExtraLong(*args, **kwargs):
  5127.         '''
  5128.         GetExtraLong(self) -> long
  5129.  
  5130.         Returns extra information dependant on the event objects type. If the
  5131.         event comes from a listbox selection, it is a boolean determining
  5132.         whether the event was a selection (true) or a deselection (false). A
  5133.         listbox deselection only occurs for multiple-selection boxes, and in
  5134.         this case the index and string values are indeterminate and the
  5135.         listbox must be examined by the application.
  5136.         '''
  5137.         return _core_.CommandEvent_GetExtraLong(*args, **kwargs)
  5138.  
  5139.     
  5140.     def SetInt(*args, **kwargs):
  5141.         '''SetInt(self, int i)'''
  5142.         return _core_.CommandEvent_SetInt(*args, **kwargs)
  5143.  
  5144.     
  5145.     def GetInt(*args, **kwargs):
  5146.         '''
  5147.         GetInt(self) -> long
  5148.  
  5149.         Returns the integer identifier corresponding to a listbox, choice or
  5150.         radiobox selection (only if the event was a selection, not a
  5151.         deselection), or a boolean value representing the value of a checkbox.
  5152.         '''
  5153.         return _core_.CommandEvent_GetInt(*args, **kwargs)
  5154.  
  5155.     
  5156.     def GetClientData(*args, **kwargs):
  5157.         '''
  5158.         GetClientData(self) -> PyObject
  5159.  
  5160.         Returns the client data object for a listbox or choice selection event, (if any.)
  5161.         '''
  5162.         return _core_.CommandEvent_GetClientData(*args, **kwargs)
  5163.  
  5164.     
  5165.     def SetClientData(*args, **kwargs):
  5166.         '''
  5167.         SetClientData(self, PyObject clientData)
  5168.  
  5169.         Associate the given client data with the item at position n.
  5170.         '''
  5171.         return _core_.CommandEvent_SetClientData(*args, **kwargs)
  5172.  
  5173.     GetClientObject = GetClientData
  5174.     SetClientObject = SetClientData
  5175.     
  5176.     def Clone(*args, **kwargs):
  5177.         '''Clone(self) -> Event'''
  5178.         return _core_.CommandEvent_Clone(*args, **kwargs)
  5179.  
  5180.  
  5181.  
  5182. class CommandEventPtr(CommandEvent):
  5183.     
  5184.     def __init__(self, this):
  5185.         self.this = this
  5186.         if not hasattr(self, 'thisown'):
  5187.             self.thisown = 0
  5188.         
  5189.         self.__class__ = CommandEvent
  5190.  
  5191.  
  5192. _core_.CommandEvent_swigregister(CommandEventPtr)
  5193.  
  5194. class NotifyEvent(CommandEvent):
  5195.     """
  5196.     An instance of this class (or one of its derived classes) is sent from
  5197.     a control when the control's state is being changed and the control
  5198.     allows that change to be prevented from happening.  The event handler
  5199.     can call `Veto` or `Allow` to tell the control what to do.
  5200.     """
  5201.     
  5202.     def __repr__(self):
  5203.         return '<%s.%s; proxy of C++ wxNotifyEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5204.  
  5205.     
  5206.     def __init__(self, *args, **kwargs):
  5207.         """
  5208.         __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent
  5209.  
  5210.         An instance of this class (or one of its derived classes) is sent from
  5211.         a control when the control's state is being changed and the control
  5212.         allows that change to be prevented from happening.  The event handler
  5213.         can call `Veto` or `Allow` to tell the control what to do.
  5214.         """
  5215.         newobj = _core_.new_NotifyEvent(*args, **kwargs)
  5216.         self.this = newobj.this
  5217.         self.thisown = 1
  5218.         del newobj.thisown
  5219.  
  5220.     
  5221.     def Veto(*args, **kwargs):
  5222.         '''
  5223.         Veto(self)
  5224.  
  5225.         Prevents the change announced by this event from happening.
  5226.  
  5227.         It is in general a good idea to notify the user about the reasons for
  5228.         vetoing the change because otherwise the applications behaviour (which
  5229.         just refuses to do what the user wants) might be quite surprising.
  5230.         '''
  5231.         return _core_.NotifyEvent_Veto(*args, **kwargs)
  5232.  
  5233.     
  5234.     def Allow(*args, **kwargs):
  5235.         '''
  5236.         Allow(self)
  5237.  
  5238.         This is the opposite of `Veto`: it explicitly allows the event to be
  5239.         processed. For most events it is not necessary to call this method as
  5240.         the events are allowed anyhow but some are forbidden by default (this
  5241.         will be mentioned in the corresponding event description).
  5242.         '''
  5243.         return _core_.NotifyEvent_Allow(*args, **kwargs)
  5244.  
  5245.     
  5246.     def IsAllowed(*args, **kwargs):
  5247.         """
  5248.         IsAllowed(self) -> bool
  5249.  
  5250.         Returns true if the change is allowed (`Veto` hasn't been called) or
  5251.         false otherwise (if it was).
  5252.         """
  5253.         return _core_.NotifyEvent_IsAllowed(*args, **kwargs)
  5254.  
  5255.  
  5256.  
  5257. class NotifyEventPtr(NotifyEvent):
  5258.     
  5259.     def __init__(self, this):
  5260.         self.this = this
  5261.         if not hasattr(self, 'thisown'):
  5262.             self.thisown = 0
  5263.         
  5264.         self.__class__ = NotifyEvent
  5265.  
  5266.  
  5267. _core_.NotifyEvent_swigregister(NotifyEventPtr)
  5268.  
  5269. class ScrollEvent(CommandEvent):
  5270.     '''
  5271.     A scroll event holds information about events sent from stand-alone
  5272.     scrollbars and sliders. Note that scrolled windows do not send
  5273.     instnaces of this event class, but send the `wx.ScrollWinEvent`
  5274.     instead.
  5275.     '''
  5276.     
  5277.     def __repr__(self):
  5278.         return '<%s.%s; proxy of C++ wxScrollEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5279.  
  5280.     
  5281.     def __init__(self, *args, **kwargs):
  5282.         '''
  5283.         __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, 
  5284.             int orient=0) -> ScrollEvent
  5285.         '''
  5286.         newobj = _core_.new_ScrollEvent(*args, **kwargs)
  5287.         self.this = newobj.this
  5288.         self.thisown = 1
  5289.         del newobj.thisown
  5290.  
  5291.     
  5292.     def GetOrientation(*args, **kwargs):
  5293.         '''
  5294.         GetOrientation(self) -> int
  5295.  
  5296.         Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of
  5297.         the scrollbar.
  5298.         '''
  5299.         return _core_.ScrollEvent_GetOrientation(*args, **kwargs)
  5300.  
  5301.     
  5302.     def GetPosition(*args, **kwargs):
  5303.         '''
  5304.         GetPosition(self) -> int
  5305.  
  5306.         Returns the position of the scrollbar.
  5307.         '''
  5308.         return _core_.ScrollEvent_GetPosition(*args, **kwargs)
  5309.  
  5310.     
  5311.     def SetOrientation(*args, **kwargs):
  5312.         '''SetOrientation(self, int orient)'''
  5313.         return _core_.ScrollEvent_SetOrientation(*args, **kwargs)
  5314.  
  5315.     
  5316.     def SetPosition(*args, **kwargs):
  5317.         '''SetPosition(self, int pos)'''
  5318.         return _core_.ScrollEvent_SetPosition(*args, **kwargs)
  5319.  
  5320.  
  5321.  
  5322. class ScrollEventPtr(ScrollEvent):
  5323.     
  5324.     def __init__(self, this):
  5325.         self.this = this
  5326.         if not hasattr(self, 'thisown'):
  5327.             self.thisown = 0
  5328.         
  5329.         self.__class__ = ScrollEvent
  5330.  
  5331.  
  5332. _core_.ScrollEvent_swigregister(ScrollEventPtr)
  5333.  
  5334. class ScrollWinEvent(Event):
  5335.     '''
  5336.     A wx.ScrollWinEvent holds information about scrolling and is sent from
  5337.     scrolling windows.
  5338.     '''
  5339.     
  5340.     def __repr__(self):
  5341.         return '<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5342.  
  5343.     
  5344.     def __init__(self, *args, **kwargs):
  5345.         '''
  5346.         __init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent
  5347.  
  5348.         A wx.ScrollWinEvent holds information about scrolling and is sent from
  5349.         scrolling windows.
  5350.         '''
  5351.         newobj = _core_.new_ScrollWinEvent(*args, **kwargs)
  5352.         self.this = newobj.this
  5353.         self.thisown = 1
  5354.         del newobj.thisown
  5355.  
  5356.     
  5357.     def GetOrientation(*args, **kwargs):
  5358.         '''
  5359.         GetOrientation(self) -> int
  5360.  
  5361.         Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of
  5362.         the scrollbar.
  5363.         '''
  5364.         return _core_.ScrollWinEvent_GetOrientation(*args, **kwargs)
  5365.  
  5366.     
  5367.     def GetPosition(*args, **kwargs):
  5368.         """
  5369.         GetPosition(self) -> int
  5370.  
  5371.         Returns the position of the scrollbar for the thumb track and release
  5372.         events. Note that this field can't be used for the other events, you
  5373.         need to query the window itself for the current position in that case.
  5374.         """
  5375.         return _core_.ScrollWinEvent_GetPosition(*args, **kwargs)
  5376.  
  5377.     
  5378.     def SetOrientation(*args, **kwargs):
  5379.         '''SetOrientation(self, int orient)'''
  5380.         return _core_.ScrollWinEvent_SetOrientation(*args, **kwargs)
  5381.  
  5382.     
  5383.     def SetPosition(*args, **kwargs):
  5384.         '''SetPosition(self, int pos)'''
  5385.         return _core_.ScrollWinEvent_SetPosition(*args, **kwargs)
  5386.  
  5387.  
  5388.  
  5389. class ScrollWinEventPtr(ScrollWinEvent):
  5390.     
  5391.     def __init__(self, this):
  5392.         self.this = this
  5393.         if not hasattr(self, 'thisown'):
  5394.             self.thisown = 0
  5395.         
  5396.         self.__class__ = ScrollWinEvent
  5397.  
  5398.  
  5399. _core_.ScrollWinEvent_swigregister(ScrollWinEventPtr)
  5400. MOUSE_BTN_ANY = _core_.MOUSE_BTN_ANY
  5401. MOUSE_BTN_NONE = _core_.MOUSE_BTN_NONE
  5402. MOUSE_BTN_LEFT = _core_.MOUSE_BTN_LEFT
  5403. MOUSE_BTN_MIDDLE = _core_.MOUSE_BTN_MIDDLE
  5404. MOUSE_BTN_RIGHT = _core_.MOUSE_BTN_RIGHT
  5405.  
  5406. class MouseEvent(Event):
  5407.     '''
  5408.     This event class contains information about the events generated by
  5409.     the mouse: they include mouse buttons press and release events and
  5410.     mouse move events.
  5411.  
  5412.     All mouse events involving the buttons use ``wx.MOUSE_BTN_LEFT`` for
  5413.     the left mouse button, ``wx.MOUSE_BTN_MIDDLE`` for the middle one and
  5414.     ``wx.MOUSE_BTN_RIGHT`` for the right one. Note that not all mice have
  5415.     a middle button so a portable application should avoid relying on the
  5416.     events from it.
  5417.  
  5418.     Note the difference between methods like `LeftDown` and `LeftIsDown`:
  5419.     the former returns true when the event corresponds to the left mouse
  5420.     button click while the latter returns true if the left mouse button is
  5421.     currently being pressed. For example, when the user is dragging the
  5422.     mouse you can use `LeftIsDown` to test whether the left mouse button
  5423.     is (still) depressed. Also, by convention, if `LeftDown` returns true,
  5424.     `LeftIsDown` will also return true in wxWidgets whatever the
  5425.     underlying GUI behaviour is (which is platform-dependent). The same
  5426.     applies, of course, to other mouse buttons as well.
  5427.     '''
  5428.     
  5429.     def __repr__(self):
  5430.         return '<%s.%s; proxy of C++ wxMouseEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5431.  
  5432.     
  5433.     def __init__(self, *args, **kwargs):
  5434.         '''
  5435.         __init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent
  5436.  
  5437.         Constructs a wx.MouseEvent.  Valid event types are:
  5438.  
  5439.             * wxEVT_ENTER_WINDOW
  5440.             * wxEVT_LEAVE_WINDOW
  5441.             * wxEVT_LEFT_DOWN
  5442.             * wxEVT_LEFT_UP
  5443.             * wxEVT_LEFT_DCLICK
  5444.             * wxEVT_MIDDLE_DOWN
  5445.             * wxEVT_MIDDLE_UP
  5446.             * wxEVT_MIDDLE_DCLICK
  5447.             * wxEVT_RIGHT_DOWN
  5448.             * wxEVT_RIGHT_UP
  5449.             * wxEVT_RIGHT_DCLICK
  5450.             * wxEVT_MOTION
  5451.             * wxEVT_MOUSEWHEEL 
  5452.         '''
  5453.         newobj = _core_.new_MouseEvent(*args, **kwargs)
  5454.         self.this = newobj.this
  5455.         self.thisown = 1
  5456.         del newobj.thisown
  5457.  
  5458.     
  5459.     def IsButton(*args, **kwargs):
  5460.         '''
  5461.         IsButton(self) -> bool
  5462.  
  5463.         Returns true if the event was a mouse button event (not necessarily a
  5464.         button down event - that may be tested using `ButtonDown`).
  5465.         '''
  5466.         return _core_.MouseEvent_IsButton(*args, **kwargs)
  5467.  
  5468.     
  5469.     def ButtonDown(*args, **kwargs):
  5470.         '''
  5471.         ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool
  5472.  
  5473.         If the argument is omitted, this returns true if the event was any
  5474.         mouse button down event. Otherwise the argument specifies which
  5475.         button-down event shold be checked for (see `Button` for the possible
  5476.         values).
  5477.         '''
  5478.         return _core_.MouseEvent_ButtonDown(*args, **kwargs)
  5479.  
  5480.     
  5481.     def ButtonDClick(*args, **kwargs):
  5482.         '''
  5483.         ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool
  5484.  
  5485.         If the argument is omitted, this returns true if the event was any
  5486.         mouse double click event. Otherwise the argument specifies which
  5487.         double click event to check for (see `Button` for the possible
  5488.         values).
  5489.         '''
  5490.         return _core_.MouseEvent_ButtonDClick(*args, **kwargs)
  5491.  
  5492.     
  5493.     def ButtonUp(*args, **kwargs):
  5494.         '''
  5495.         ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool
  5496.  
  5497.         If the argument is omitted, this returns true if the event was any
  5498.         mouse button up event. Otherwise the argument specifies which button
  5499.         up event to check for (see `Button` for the possible values).
  5500.         '''
  5501.         return _core_.MouseEvent_ButtonUp(*args, **kwargs)
  5502.  
  5503.     
  5504.     def Button(*args, **kwargs):
  5505.         '''
  5506.         Button(self, int button) -> bool
  5507.  
  5508.         Returns true if the identified mouse button is changing state. Valid
  5509.         values of button are:
  5510.  
  5511.              ====================      =====================================
  5512.              wx.MOUSE_BTN_LEFT         check if left button was pressed
  5513.              wx.MOUSE_BTN_MIDDLE       check if middle button was pressed
  5514.              wx.MOUSE_BTN_RIGHT        check if right button was pressed
  5515.              wx.MOUSE_BTN_ANY          check if any button was pressed
  5516.              ====================      =====================================
  5517.  
  5518.         '''
  5519.         return _core_.MouseEvent_Button(*args, **kwargs)
  5520.  
  5521.     
  5522.     def ButtonIsDown(*args, **kwargs):
  5523.         '''ButtonIsDown(self, int but) -> bool'''
  5524.         return _core_.MouseEvent_ButtonIsDown(*args, **kwargs)
  5525.  
  5526.     
  5527.     def GetButton(*args, **kwargs):
  5528.         '''
  5529.         GetButton(self) -> int
  5530.  
  5531.         Returns the mouse button which generated this event or
  5532.         wx.MOUSE_BTN_NONE if no button is involved (for mouse move, enter or
  5533.         leave event, for example). Otherwise wx.MOUSE_BTN_LEFT is returned for
  5534.         the left button down, up and double click events, wx.MOUSE_BTN_MIDDLE
  5535.         and wx.MOUSE_BTN_RIGHT for the same events for the middle and the
  5536.         right buttons respectively.
  5537.         '''
  5538.         return _core_.MouseEvent_GetButton(*args, **kwargs)
  5539.  
  5540.     
  5541.     def ControlDown(*args, **kwargs):
  5542.         '''
  5543.         ControlDown(self) -> bool
  5544.  
  5545.         Returns true if the control key was down at the time of the event.
  5546.         '''
  5547.         return _core_.MouseEvent_ControlDown(*args, **kwargs)
  5548.  
  5549.     
  5550.     def MetaDown(*args, **kwargs):
  5551.         '''
  5552.         MetaDown(self) -> bool
  5553.  
  5554.         Returns true if the Meta key was down at the time of the event.
  5555.         '''
  5556.         return _core_.MouseEvent_MetaDown(*args, **kwargs)
  5557.  
  5558.     
  5559.     def AltDown(*args, **kwargs):
  5560.         '''
  5561.         AltDown(self) -> bool
  5562.  
  5563.         Returns true if the Alt key was down at the time of the event.
  5564.         '''
  5565.         return _core_.MouseEvent_AltDown(*args, **kwargs)
  5566.  
  5567.     
  5568.     def ShiftDown(*args, **kwargs):
  5569.         '''
  5570.         ShiftDown(self) -> bool
  5571.  
  5572.         Returns true if the Shift key was down at the time of the event.
  5573.         '''
  5574.         return _core_.MouseEvent_ShiftDown(*args, **kwargs)
  5575.  
  5576.     
  5577.     def CmdDown(*args, **kwargs):
  5578.         '''
  5579.         CmdDown(self) -> bool
  5580.  
  5581.         "Cmd" is a pseudo key which is the same as Control for PC and Unix
  5582.         platforms but the special "Apple" (a.k.a as "Command") key on
  5583.         Macs. It often makes sense to use it instead of, say, `ControlDown`
  5584.         because Cmd key is used for the same thing under Mac as Ctrl
  5585.         elsewhere. The Ctrl key still exists, it\'s just not used for this
  5586.         purpose. So for non-Mac platforms this is the same as `ControlDown`
  5587.         and Macs this is the same as `MetaDown`.
  5588.         '''
  5589.         return _core_.MouseEvent_CmdDown(*args, **kwargs)
  5590.  
  5591.     
  5592.     def LeftDown(*args, **kwargs):
  5593.         '''
  5594.         LeftDown(self) -> bool
  5595.  
  5596.         Returns true if the left mouse button state changed to down.
  5597.         '''
  5598.         return _core_.MouseEvent_LeftDown(*args, **kwargs)
  5599.  
  5600.     
  5601.     def MiddleDown(*args, **kwargs):
  5602.         '''
  5603.         MiddleDown(self) -> bool
  5604.  
  5605.         Returns true if the middle mouse button state changed to down.
  5606.         '''
  5607.         return _core_.MouseEvent_MiddleDown(*args, **kwargs)
  5608.  
  5609.     
  5610.     def RightDown(*args, **kwargs):
  5611.         '''
  5612.         RightDown(self) -> bool
  5613.  
  5614.         Returns true if the right mouse button state changed to down.
  5615.         '''
  5616.         return _core_.MouseEvent_RightDown(*args, **kwargs)
  5617.  
  5618.     
  5619.     def LeftUp(*args, **kwargs):
  5620.         '''
  5621.         LeftUp(self) -> bool
  5622.  
  5623.         Returns true if the left mouse button state changed to up.
  5624.         '''
  5625.         return _core_.MouseEvent_LeftUp(*args, **kwargs)
  5626.  
  5627.     
  5628.     def MiddleUp(*args, **kwargs):
  5629.         '''
  5630.         MiddleUp(self) -> bool
  5631.  
  5632.         Returns true if the middle mouse button state changed to up.
  5633.         '''
  5634.         return _core_.MouseEvent_MiddleUp(*args, **kwargs)
  5635.  
  5636.     
  5637.     def RightUp(*args, **kwargs):
  5638.         '''
  5639.         RightUp(self) -> bool
  5640.  
  5641.         Returns true if the right mouse button state changed to up.
  5642.         '''
  5643.         return _core_.MouseEvent_RightUp(*args, **kwargs)
  5644.  
  5645.     
  5646.     def LeftDClick(*args, **kwargs):
  5647.         '''
  5648.         LeftDClick(self) -> bool
  5649.  
  5650.         Returns true if the event was a left button double click.
  5651.         '''
  5652.         return _core_.MouseEvent_LeftDClick(*args, **kwargs)
  5653.  
  5654.     
  5655.     def MiddleDClick(*args, **kwargs):
  5656.         '''
  5657.         MiddleDClick(self) -> bool
  5658.  
  5659.         Returns true if the event was a middle button double click.
  5660.         '''
  5661.         return _core_.MouseEvent_MiddleDClick(*args, **kwargs)
  5662.  
  5663.     
  5664.     def RightDClick(*args, **kwargs):
  5665.         '''
  5666.         RightDClick(self) -> bool
  5667.  
  5668.         Returns true if the event was a right button double click.
  5669.         '''
  5670.         return _core_.MouseEvent_RightDClick(*args, **kwargs)
  5671.  
  5672.     
  5673.     def LeftIsDown(*args, **kwargs):
  5674.         '''
  5675.         LeftIsDown(self) -> bool
  5676.  
  5677.         Returns true if the left mouse button is currently down, independent
  5678.         of the current event type.
  5679.  
  5680.         Please notice that it is not the same as LeftDown which returns true
  5681.         if the left mouse button was just pressed. Rather, it describes the
  5682.         state of the mouse button before the event happened.
  5683.  
  5684.         This event is usually used in the mouse event handlers which process
  5685.         "move mouse" messages to determine whether the user is (still)
  5686.         dragging the mouse.
  5687.         '''
  5688.         return _core_.MouseEvent_LeftIsDown(*args, **kwargs)
  5689.  
  5690.     
  5691.     def MiddleIsDown(*args, **kwargs):
  5692.         '''
  5693.         MiddleIsDown(self) -> bool
  5694.  
  5695.         Returns true if the middle mouse button is currently down, independent
  5696.         of the current event type.
  5697.         '''
  5698.         return _core_.MouseEvent_MiddleIsDown(*args, **kwargs)
  5699.  
  5700.     
  5701.     def RightIsDown(*args, **kwargs):
  5702.         '''
  5703.         RightIsDown(self) -> bool
  5704.  
  5705.         Returns true if the right mouse button is currently down, independent
  5706.         of the current event type.
  5707.         '''
  5708.         return _core_.MouseEvent_RightIsDown(*args, **kwargs)
  5709.  
  5710.     
  5711.     def Dragging(*args, **kwargs):
  5712.         '''
  5713.         Dragging(self) -> bool
  5714.  
  5715.         Returns true if this was a dragging event (motion while a button is
  5716.         depressed).
  5717.         '''
  5718.         return _core_.MouseEvent_Dragging(*args, **kwargs)
  5719.  
  5720.     
  5721.     def Moving(*args, **kwargs):
  5722.         '''
  5723.         Moving(self) -> bool
  5724.  
  5725.         Returns true if this was a motion event and no mouse buttons were
  5726.         pressed. If any mouse button is held pressed, then this method returns
  5727.         false and Dragging returns true.
  5728.         '''
  5729.         return _core_.MouseEvent_Moving(*args, **kwargs)
  5730.  
  5731.     
  5732.     def Entering(*args, **kwargs):
  5733.         '''
  5734.         Entering(self) -> bool
  5735.  
  5736.         Returns true if the mouse was entering the window.
  5737.         '''
  5738.         return _core_.MouseEvent_Entering(*args, **kwargs)
  5739.  
  5740.     
  5741.     def Leaving(*args, **kwargs):
  5742.         '''
  5743.         Leaving(self) -> bool
  5744.  
  5745.         Returns true if the mouse was leaving the window.
  5746.         '''
  5747.         return _core_.MouseEvent_Leaving(*args, **kwargs)
  5748.  
  5749.     
  5750.     def GetPosition(*args, **kwargs):
  5751.         '''
  5752.         GetPosition(self) -> Point
  5753.  
  5754.         Returns the pixel position of the mouse in window coordinates when the
  5755.         event happened.
  5756.         '''
  5757.         return _core_.MouseEvent_GetPosition(*args, **kwargs)
  5758.  
  5759.     
  5760.     def GetPositionTuple(*args, **kwargs):
  5761.         '''
  5762.         GetPositionTuple() -> (x,y)
  5763.  
  5764.         Returns the pixel position of the mouse in window coordinates when the
  5765.         event happened.
  5766.         '''
  5767.         return _core_.MouseEvent_GetPositionTuple(*args, **kwargs)
  5768.  
  5769.     
  5770.     def GetLogicalPosition(*args, **kwargs):
  5771.         '''
  5772.         GetLogicalPosition(self, DC dc) -> Point
  5773.  
  5774.         Returns the logical mouse position in pixels (i.e. translated
  5775.         according to the translation set for the DC, which usually indicates
  5776.         that the window has been scrolled).
  5777.         '''
  5778.         return _core_.MouseEvent_GetLogicalPosition(*args, **kwargs)
  5779.  
  5780.     
  5781.     def GetX(*args, **kwargs):
  5782.         '''
  5783.         GetX(self) -> int
  5784.  
  5785.         Returns X coordinate of the physical mouse event position.
  5786.         '''
  5787.         return _core_.MouseEvent_GetX(*args, **kwargs)
  5788.  
  5789.     
  5790.     def GetY(*args, **kwargs):
  5791.         '''
  5792.         GetY(self) -> int
  5793.  
  5794.         Returns Y coordinate of the physical mouse event position.
  5795.         '''
  5796.         return _core_.MouseEvent_GetY(*args, **kwargs)
  5797.  
  5798.     
  5799.     def GetWheelRotation(*args, **kwargs):
  5800.         """
  5801.         GetWheelRotation(self) -> int
  5802.  
  5803.         Get wheel rotation, positive or negative indicates direction of
  5804.         rotation. Current devices all send an event when rotation is equal to
  5805.         +/-WheelDelta, but this allows for finer resolution devices to be
  5806.         created in the future. Because of this you shouldn't assume that one
  5807.         event is equal to 1 line or whatever, but you should be able to either
  5808.         do partial line scrolling or wait until +/-WheelDelta rotation values
  5809.         have been accumulated before scrolling.
  5810.         """
  5811.         return _core_.MouseEvent_GetWheelRotation(*args, **kwargs)
  5812.  
  5813.     
  5814.     def GetWheelDelta(*args, **kwargs):
  5815.         '''
  5816.         GetWheelDelta(self) -> int
  5817.  
  5818.         Get wheel delta, normally 120. This is the threshold for action to be
  5819.         taken, and one such action (for example, scrolling one increment)
  5820.         should occur for each delta.
  5821.         '''
  5822.         return _core_.MouseEvent_GetWheelDelta(*args, **kwargs)
  5823.  
  5824.     
  5825.     def GetLinesPerAction(*args, **kwargs):
  5826.         '''
  5827.         GetLinesPerAction(self) -> int
  5828.  
  5829.         Returns the configured number of lines (or whatever) to be scrolled
  5830.         per wheel action. Defaults to three.
  5831.         '''
  5832.         return _core_.MouseEvent_GetLinesPerAction(*args, **kwargs)
  5833.  
  5834.     
  5835.     def IsPageScroll(*args, **kwargs):
  5836.         '''
  5837.         IsPageScroll(self) -> bool
  5838.  
  5839.         Returns true if the system has been setup to do page scrolling with
  5840.         the mouse wheel instead of line scrolling.
  5841.         '''
  5842.         return _core_.MouseEvent_IsPageScroll(*args, **kwargs)
  5843.  
  5844.     m_x = property(_core_.MouseEvent_m_x_get, _core_.MouseEvent_m_x_set)
  5845.     m_y = property(_core_.MouseEvent_m_y_get, _core_.MouseEvent_m_y_set)
  5846.     m_leftDown = property(_core_.MouseEvent_m_leftDown_get, _core_.MouseEvent_m_leftDown_set)
  5847.     m_middleDown = property(_core_.MouseEvent_m_middleDown_get, _core_.MouseEvent_m_middleDown_set)
  5848.     m_rightDown = property(_core_.MouseEvent_m_rightDown_get, _core_.MouseEvent_m_rightDown_set)
  5849.     m_controlDown = property(_core_.MouseEvent_m_controlDown_get, _core_.MouseEvent_m_controlDown_set)
  5850.     m_shiftDown = property(_core_.MouseEvent_m_shiftDown_get, _core_.MouseEvent_m_shiftDown_set)
  5851.     m_altDown = property(_core_.MouseEvent_m_altDown_get, _core_.MouseEvent_m_altDown_set)
  5852.     m_metaDown = property(_core_.MouseEvent_m_metaDown_get, _core_.MouseEvent_m_metaDown_set)
  5853.     m_wheelRotation = property(_core_.MouseEvent_m_wheelRotation_get, _core_.MouseEvent_m_wheelRotation_set)
  5854.     m_wheelDelta = property(_core_.MouseEvent_m_wheelDelta_get, _core_.MouseEvent_m_wheelDelta_set)
  5855.     m_linesPerAction = property(_core_.MouseEvent_m_linesPerAction_get, _core_.MouseEvent_m_linesPerAction_set)
  5856.  
  5857.  
  5858. class MouseEventPtr(MouseEvent):
  5859.     
  5860.     def __init__(self, this):
  5861.         self.this = this
  5862.         if not hasattr(self, 'thisown'):
  5863.             self.thisown = 0
  5864.         
  5865.         self.__class__ = MouseEvent
  5866.  
  5867.  
  5868. _core_.MouseEvent_swigregister(MouseEventPtr)
  5869.  
  5870. class SetCursorEvent(Event):
  5871.     '''
  5872.     A SetCursorEvent is generated when the mouse cursor is about to be set
  5873.     as a result of mouse motion. This event gives the application the
  5874.     chance to perform specific mouse cursor processing based on the
  5875.     current position of the mouse within the window. Use the `SetCursor`
  5876.     method to specify the cursor you want to be displayed.
  5877.     '''
  5878.     
  5879.     def __repr__(self):
  5880.         return '<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5881.  
  5882.     
  5883.     def __init__(self, *args, **kwargs):
  5884.         '''
  5885.         __init__(self, int x=0, int y=0) -> SetCursorEvent
  5886.  
  5887.         Construct a new `wx.SetCursorEvent`.
  5888.         '''
  5889.         newobj = _core_.new_SetCursorEvent(*args, **kwargs)
  5890.         self.this = newobj.this
  5891.         self.thisown = 1
  5892.         del newobj.thisown
  5893.  
  5894.     
  5895.     def GetX(*args, **kwargs):
  5896.         '''
  5897.         GetX(self) -> int
  5898.  
  5899.         Returns the X coordinate of the mouse in client coordinates.
  5900.         '''
  5901.         return _core_.SetCursorEvent_GetX(*args, **kwargs)
  5902.  
  5903.     
  5904.     def GetY(*args, **kwargs):
  5905.         '''
  5906.         GetY(self) -> int
  5907.  
  5908.         Returns the Y coordinate of the mouse in client coordinates.
  5909.         '''
  5910.         return _core_.SetCursorEvent_GetY(*args, **kwargs)
  5911.  
  5912.     
  5913.     def SetCursor(*args, **kwargs):
  5914.         '''
  5915.         SetCursor(self, Cursor cursor)
  5916.  
  5917.         Sets the cursor associated with this event.
  5918.         '''
  5919.         return _core_.SetCursorEvent_SetCursor(*args, **kwargs)
  5920.  
  5921.     
  5922.     def GetCursor(*args, **kwargs):
  5923.         '''
  5924.         GetCursor(self) -> Cursor
  5925.  
  5926.         Returns a reference to the cursor specified by this event.
  5927.         '''
  5928.         return _core_.SetCursorEvent_GetCursor(*args, **kwargs)
  5929.  
  5930.     
  5931.     def HasCursor(*args, **kwargs):
  5932.         '''
  5933.         HasCursor(self) -> bool
  5934.  
  5935.         Returns true if the cursor specified by this event is a valid cursor.
  5936.         '''
  5937.         return _core_.SetCursorEvent_HasCursor(*args, **kwargs)
  5938.  
  5939.  
  5940.  
  5941. class SetCursorEventPtr(SetCursorEvent):
  5942.     
  5943.     def __init__(self, this):
  5944.         self.this = this
  5945.         if not hasattr(self, 'thisown'):
  5946.             self.thisown = 0
  5947.         
  5948.         self.__class__ = SetCursorEvent
  5949.  
  5950.  
  5951. _core_.SetCursorEvent_swigregister(SetCursorEventPtr)
  5952.  
  5953. class KeyEvent(Event):
  5954.     """
  5955.     This event class contains information about keypress and character
  5956.     events.  These events are only sent to the widget that currently has
  5957.     the keyboard focus.
  5958.  
  5959.     Notice that there are three different kinds of keyboard events in
  5960.     wxWidgets: key down and up events and char events. The difference
  5961.     between the first two is clear - the first corresponds to a key press
  5962.     and the second to a key release - otherwise they are identical. Just
  5963.     note that if the key is maintained in a pressed state you will
  5964.     typically get a lot of (automatically generated) down events but only
  5965.     one up so it is wrong to assume that there is one up event
  5966.     corresponding to each down one.
  5967.  
  5968.     Both key events provide untranslated key codes while the char event
  5969.     carries the translated one. The untranslated code for alphanumeric
  5970.     keys is always an upper case value. For the other keys it is one of
  5971.     WXK_XXX values from the keycodes table. The translated key is, in
  5972.     general, the character the user expects to appear as the result of the
  5973.     key combination when typing the text into a text entry zone, for
  5974.     example.
  5975.  
  5976.     A few examples to clarify this (all assume that CAPS LOCK is unpressed
  5977.     and the standard US keyboard): when the 'A' key is pressed, the key
  5978.     down event key code is equal to ASCII A == 65. But the char event key
  5979.     code is ASCII a == 97. On the other hand, if you press both SHIFT and
  5980.     'A' keys simultaneously , the key code in key down event will still be
  5981.     just 'A' while the char event key code parameter will now be 'A' as
  5982.     well.
  5983.  
  5984.     Although in this simple case it is clear that the correct key code
  5985.     could be found in the key down event handler by checking the value
  5986.     returned by `ShiftDown`, in general you should use EVT_CHAR for this
  5987.     as for non alphanumeric keys or non-US keyboard layouts the
  5988.     translation is keyboard-layout dependent and can only be done properly
  5989.     by the system itself.
  5990.  
  5991.     Another kind of translation is done when the control key is pressed:
  5992.     for example, for CTRL-A key press the key down event still carries the
  5993.     same key code 'A' as usual but the char event will have key code of 1,
  5994.     the ASCII value of this key combination.
  5995.  
  5996.     You may discover how the other keys on your system behave
  5997.     interactively by running the KeyEvents sample in the wxPython demo and
  5998.     pressing some keys while the blue box at the top has the keyboard
  5999.     focus.
  6000.  
  6001.     **Note**: If a key down event is caught and the event handler does not
  6002.     call event.Skip() then the coresponding char event will not
  6003.     happen. This is by design and enables the programs that handle both
  6004.     types of events to be a bit simpler.
  6005.  
  6006.     **Note for Windows programmers**: The key and char events in wxWidgets
  6007.     are similar to but slightly different from Windows WM_KEYDOWN and
  6008.     WM_CHAR events. In particular, Alt-x combination will generate a char
  6009.     event in wxWidgets (unless it is used as an accelerator).
  6010.  
  6011.     **Tip**: be sure to call event.Skip() for events that you don't
  6012.     process in key event function, otherwise menu shortcuts may cease to
  6013.     work under Windows.
  6014.  
  6015.     """
  6016.     
  6017.     def __repr__(self):
  6018.         return '<%s.%s; proxy of C++ wxKeyEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6019.  
  6020.     
  6021.     def __init__(self, *args, **kwargs):
  6022.         '''
  6023.         __init__(self, wxEventType eventType=wxEVT_NULL) -> KeyEvent
  6024.  
  6025.         Construct a new `wx.KeyEvent`.  Valid event types are:
  6026.             * 
  6027.         '''
  6028.         newobj = _core_.new_KeyEvent(*args, **kwargs)
  6029.         self.this = newobj.this
  6030.         self.thisown = 1
  6031.         del newobj.thisown
  6032.  
  6033.     
  6034.     def ControlDown(*args, **kwargs):
  6035.         '''
  6036.         ControlDown(self) -> bool
  6037.  
  6038.         Returns ``True`` if the Control key was down at the time of the event.
  6039.         '''
  6040.         return _core_.KeyEvent_ControlDown(*args, **kwargs)
  6041.  
  6042.     
  6043.     def MetaDown(*args, **kwargs):
  6044.         '''
  6045.         MetaDown(self) -> bool
  6046.  
  6047.         Returns ``True`` if the Meta key was down at the time of the event.
  6048.         '''
  6049.         return _core_.KeyEvent_MetaDown(*args, **kwargs)
  6050.  
  6051.     
  6052.     def AltDown(*args, **kwargs):
  6053.         '''
  6054.         AltDown(self) -> bool
  6055.  
  6056.         Returns ``True`` if the Alt key was down at the time of the event.
  6057.         '''
  6058.         return _core_.KeyEvent_AltDown(*args, **kwargs)
  6059.  
  6060.     
  6061.     def ShiftDown(*args, **kwargs):
  6062.         '''
  6063.         ShiftDown(self) -> bool
  6064.  
  6065.         Returns ``True`` if the Shift key was down at the time of the event.
  6066.         '''
  6067.         return _core_.KeyEvent_ShiftDown(*args, **kwargs)
  6068.  
  6069.     
  6070.     def CmdDown(*args, **kwargs):
  6071.         '''
  6072.         CmdDown(self) -> bool
  6073.  
  6074.         "Cmd" is a pseudo key which is the same as Control for PC and Unix
  6075.         platforms but the special "Apple" (a.k.a as "Command") key on
  6076.         Macs. It makes often sense to use it instead of, say, `ControlDown`
  6077.         because Cmd key is used for the same thing under Mac as Ctrl
  6078.         elsewhere. The Ctrl still exists, it\'s just not used for this
  6079.         purpose. So for non-Mac platforms this is the same as `ControlDown`
  6080.         and Macs this is the same as `MetaDown`.
  6081.         '''
  6082.         return _core_.KeyEvent_CmdDown(*args, **kwargs)
  6083.  
  6084.     
  6085.     def HasModifiers(*args, **kwargs):
  6086.         '''
  6087.         HasModifiers(self) -> bool
  6088.  
  6089.         Returns true if either CTRL or ALT keys was down at the time of the
  6090.         key event. Note that this function does not take into account neither
  6091.         SHIFT nor META key states (the reason for ignoring the latter is that
  6092.         it is common for NUMLOCK key to be configured as META under X but the
  6093.         key presses even while NUMLOCK is on should be still processed
  6094.         normally).
  6095.         '''
  6096.         return _core_.KeyEvent_HasModifiers(*args, **kwargs)
  6097.  
  6098.     
  6099.     def GetKeyCode(*args, **kwargs):
  6100.         """
  6101.         GetKeyCode(self) -> int
  6102.  
  6103.         Returns the virtual key code. ASCII events return normal ASCII values,
  6104.         while non-ASCII events return values such as WXK_LEFT for the left
  6105.         cursor key. See `wx.KeyEvent` for a full list of the virtual key
  6106.         codes.
  6107.  
  6108.         Note that in Unicode build, the returned value is meaningful only if
  6109.         the user entered a character that can be represented in current
  6110.         locale's default charset. You can obtain the corresponding Unicode
  6111.         character using `GetUnicodeKey`.
  6112.         """
  6113.         return _core_.KeyEvent_GetKeyCode(*args, **kwargs)
  6114.  
  6115.     KeyCode = GetKeyCode
  6116.     
  6117.     def GetUnicodeKey(*args, **kwargs):
  6118.         '''
  6119.         GetUnicodeKey(self) -> int
  6120.  
  6121.         Returns the Unicode character corresponding to this key event.  This
  6122.         function is only meaningfule in a Unicode build of wxPython.
  6123.         '''
  6124.         return _core_.KeyEvent_GetUnicodeKey(*args, **kwargs)
  6125.  
  6126.     GetUniChar = GetUnicodeKey
  6127.     
  6128.     def GetRawKeyCode(*args, **kwargs):
  6129.         '''
  6130.         GetRawKeyCode(self) -> unsigned int
  6131.  
  6132.         Returns the raw key code for this event. This is a platform-dependent
  6133.         scan code which should only be used in advanced
  6134.         applications. Currently the raw key codes are not supported by all
  6135.         ports.
  6136.         '''
  6137.         return _core_.KeyEvent_GetRawKeyCode(*args, **kwargs)
  6138.  
  6139.     
  6140.     def GetRawKeyFlags(*args, **kwargs):
  6141.         '''
  6142.         GetRawKeyFlags(self) -> unsigned int
  6143.  
  6144.         Returns the low level key flags for this event. The flags are
  6145.         platform-dependent and should only be used in advanced applications.
  6146.         Currently the raw key flags are not supported by all ports.
  6147.         '''
  6148.         return _core_.KeyEvent_GetRawKeyFlags(*args, **kwargs)
  6149.  
  6150.     
  6151.     def GetPosition(*args, **kwargs):
  6152.         '''
  6153.         GetPosition(self) -> Point
  6154.  
  6155.         Find the position of the event, if applicable.
  6156.         '''
  6157.         return _core_.KeyEvent_GetPosition(*args, **kwargs)
  6158.  
  6159.     
  6160.     def GetPositionTuple(*args, **kwargs):
  6161.         '''
  6162.         GetPositionTuple() -> (x,y)
  6163.  
  6164.         Find the position of the event, if applicable.
  6165.         '''
  6166.         return _core_.KeyEvent_GetPositionTuple(*args, **kwargs)
  6167.  
  6168.     
  6169.     def GetX(*args, **kwargs):
  6170.         '''
  6171.         GetX(self) -> int
  6172.  
  6173.         Returns the X position (in client coordinates) of the event, if
  6174.         applicable.
  6175.         '''
  6176.         return _core_.KeyEvent_GetX(*args, **kwargs)
  6177.  
  6178.     
  6179.     def GetY(*args, **kwargs):
  6180.         '''
  6181.         GetY(self) -> int
  6182.  
  6183.         Returns the Y position (in client coordinates) of the event, if
  6184.         applicable.
  6185.         '''
  6186.         return _core_.KeyEvent_GetY(*args, **kwargs)
  6187.  
  6188.     m_x = property(_core_.KeyEvent_m_x_get, _core_.KeyEvent_m_x_set)
  6189.     m_y = property(_core_.KeyEvent_m_y_get, _core_.KeyEvent_m_y_set)
  6190.     m_keyCode = property(_core_.KeyEvent_m_keyCode_get, _core_.KeyEvent_m_keyCode_set)
  6191.     m_controlDown = property(_core_.KeyEvent_m_controlDown_get, _core_.KeyEvent_m_controlDown_set)
  6192.     m_shiftDown = property(_core_.KeyEvent_m_shiftDown_get, _core_.KeyEvent_m_shiftDown_set)
  6193.     m_altDown = property(_core_.KeyEvent_m_altDown_get, _core_.KeyEvent_m_altDown_set)
  6194.     m_metaDown = property(_core_.KeyEvent_m_metaDown_get, _core_.KeyEvent_m_metaDown_set)
  6195.     m_scanCode = property(_core_.KeyEvent_m_scanCode_get, _core_.KeyEvent_m_scanCode_set)
  6196.     m_rawCode = property(_core_.KeyEvent_m_rawCode_get, _core_.KeyEvent_m_rawCode_set)
  6197.     m_rawFlags = property(_core_.KeyEvent_m_rawFlags_get, _core_.KeyEvent_m_rawFlags_set)
  6198.  
  6199.  
  6200. class KeyEventPtr(KeyEvent):
  6201.     
  6202.     def __init__(self, this):
  6203.         self.this = this
  6204.         if not hasattr(self, 'thisown'):
  6205.             self.thisown = 0
  6206.         
  6207.         self.__class__ = KeyEvent
  6208.  
  6209.  
  6210. _core_.KeyEvent_swigregister(KeyEventPtr)
  6211.  
  6212. class SizeEvent(Event):
  6213.     '''
  6214.     A size event holds information about size change events.  The EVT_SIZE
  6215.     handler function will be called when the window it is bound to has
  6216.     been resized.
  6217.  
  6218.     Note that the size passed is of the whole window: call
  6219.     `wx.Window.GetClientSize` for the area which may be used by the
  6220.     application.
  6221.  
  6222.     When a window is resized, usually only a small part of the window is
  6223.     damaged and and that area is all that is in the update region for the
  6224.     next paint event. However, if your drawing depends on the size of the
  6225.     window, you may need to clear the DC explicitly and repaint the whole
  6226.     window. In which case, you may need to call `wx.Window.Refresh` to
  6227.     invalidate the entire window.
  6228.  
  6229.     '''
  6230.     
  6231.     def __repr__(self):
  6232.         return '<%s.%s; proxy of C++ wxSizeEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6233.  
  6234.     
  6235.     def __init__(self, *args, **kwargs):
  6236.         '''
  6237.         __init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent
  6238.  
  6239.         Construct a new ``wx.SizeEvent``.
  6240.         '''
  6241.         newobj = _core_.new_SizeEvent(*args, **kwargs)
  6242.         self.this = newobj.this
  6243.         self.thisown = 1
  6244.         del newobj.thisown
  6245.  
  6246.     
  6247.     def GetSize(*args, **kwargs):
  6248.         '''
  6249.         GetSize(self) -> Size
  6250.  
  6251.         Returns the entire size of the window generating the size change
  6252.         event.
  6253.         '''
  6254.         return _core_.SizeEvent_GetSize(*args, **kwargs)
  6255.  
  6256.     
  6257.     def GetRect(*args, **kwargs):
  6258.         '''GetRect(self) -> Rect'''
  6259.         return _core_.SizeEvent_GetRect(*args, **kwargs)
  6260.  
  6261.     
  6262.     def SetRect(*args, **kwargs):
  6263.         '''SetRect(self, Rect rect)'''
  6264.         return _core_.SizeEvent_SetRect(*args, **kwargs)
  6265.  
  6266.     
  6267.     def SetSize(*args, **kwargs):
  6268.         '''SetSize(self, Size size)'''
  6269.         return _core_.SizeEvent_SetSize(*args, **kwargs)
  6270.  
  6271.     m_size = property(_core_.SizeEvent_m_size_get, _core_.SizeEvent_m_size_set)
  6272.     m_rect = property(_core_.SizeEvent_m_rect_get, _core_.SizeEvent_m_rect_set)
  6273.  
  6274.  
  6275. class SizeEventPtr(SizeEvent):
  6276.     
  6277.     def __init__(self, this):
  6278.         self.this = this
  6279.         if not hasattr(self, 'thisown'):
  6280.             self.thisown = 0
  6281.         
  6282.         self.__class__ = SizeEvent
  6283.  
  6284.  
  6285. _core_.SizeEvent_swigregister(SizeEventPtr)
  6286.  
  6287. class MoveEvent(Event):
  6288.     '''
  6289.     This event object is sent for EVT_MOVE event bindings when a window is
  6290.     moved to a new position.
  6291.     '''
  6292.     
  6293.     def __repr__(self):
  6294.         return '<%s.%s; proxy of C++ wxMoveEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6295.  
  6296.     
  6297.     def __init__(self, *args, **kwargs):
  6298.         '''
  6299.         __init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent
  6300.  
  6301.         Constructor.
  6302.         '''
  6303.         newobj = _core_.new_MoveEvent(*args, **kwargs)
  6304.         self.this = newobj.this
  6305.         self.thisown = 1
  6306.         del newobj.thisown
  6307.  
  6308.     
  6309.     def GetPosition(*args, **kwargs):
  6310.         '''
  6311.         GetPosition(self) -> Point
  6312.  
  6313.         Returns the position of the window generating the move change event.
  6314.         '''
  6315.         return _core_.MoveEvent_GetPosition(*args, **kwargs)
  6316.  
  6317.     
  6318.     def GetRect(*args, **kwargs):
  6319.         '''GetRect(self) -> Rect'''
  6320.         return _core_.MoveEvent_GetRect(*args, **kwargs)
  6321.  
  6322.     
  6323.     def SetRect(*args, **kwargs):
  6324.         '''SetRect(self, Rect rect)'''
  6325.         return _core_.MoveEvent_SetRect(*args, **kwargs)
  6326.  
  6327.     
  6328.     def SetPosition(*args, **kwargs):
  6329.         '''SetPosition(self, Point pos)'''
  6330.         return _core_.MoveEvent_SetPosition(*args, **kwargs)
  6331.  
  6332.     m_pos = property(GetPosition, SetPosition)
  6333.     m_rect = property(GetRect, SetRect)
  6334.  
  6335.  
  6336. class MoveEventPtr(MoveEvent):
  6337.     
  6338.     def __init__(self, this):
  6339.         self.this = this
  6340.         if not hasattr(self, 'thisown'):
  6341.             self.thisown = 0
  6342.         
  6343.         self.__class__ = MoveEvent
  6344.  
  6345.  
  6346. _core_.MoveEvent_swigregister(MoveEventPtr)
  6347.  
  6348. class PaintEvent(Event):
  6349.     """
  6350.     A paint event is sent when a window's contents needs to be repainted.
  6351.     Note that in an EVT_PAINT handler the application must *always* create
  6352.     a `wx.PaintDC` object, even if you do not use it.  Otherwise MS
  6353.     Windows assumes that the window has not been painted yet and will send
  6354.     the event again, causing endless refreshes.
  6355.  
  6356.     You can optimize painting by retrieving the rectangles that have been
  6357.     damaged using `wx.Window.GetUpdateRegion` and/or `wx.RegionIterator`,
  6358.     and only repainting these rectangles. The rectangles are in terms of
  6359.     the client area, and are unscrolled, so you will need to do some
  6360.     calculations using the current view position to obtain logical,
  6361.     scrolled units.
  6362.  
  6363.     """
  6364.     
  6365.     def __repr__(self):
  6366.         return '<%s.%s; proxy of C++ wxPaintEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6367.  
  6368.     
  6369.     def __init__(self, *args, **kwargs):
  6370.         '''__init__(self, int Id=0) -> PaintEvent'''
  6371.         newobj = _core_.new_PaintEvent(*args, **kwargs)
  6372.         self.this = newobj.this
  6373.         self.thisown = 1
  6374.         del newobj.thisown
  6375.  
  6376.  
  6377.  
  6378. class PaintEventPtr(PaintEvent):
  6379.     
  6380.     def __init__(self, this):
  6381.         self.this = this
  6382.         if not hasattr(self, 'thisown'):
  6383.             self.thisown = 0
  6384.         
  6385.         self.__class__ = PaintEvent
  6386.  
  6387.  
  6388. _core_.PaintEvent_swigregister(PaintEventPtr)
  6389.  
  6390. class NcPaintEvent(Event):
  6391.     '''Proxy of C++ NcPaintEvent class'''
  6392.     
  6393.     def __repr__(self):
  6394.         return '<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6395.  
  6396.     
  6397.     def __init__(self, *args, **kwargs):
  6398.         '''__init__(self, int winid=0) -> NcPaintEvent'''
  6399.         newobj = _core_.new_NcPaintEvent(*args, **kwargs)
  6400.         self.this = newobj.this
  6401.         self.thisown = 1
  6402.         del newobj.thisown
  6403.  
  6404.  
  6405.  
  6406. class NcPaintEventPtr(NcPaintEvent):
  6407.     
  6408.     def __init__(self, this):
  6409.         self.this = this
  6410.         if not hasattr(self, 'thisown'):
  6411.             self.thisown = 0
  6412.         
  6413.         self.__class__ = NcPaintEvent
  6414.  
  6415.  
  6416. _core_.NcPaintEvent_swigregister(NcPaintEventPtr)
  6417.  
  6418. class EraseEvent(Event):
  6419.     '''
  6420.     An erase event is sent whenever the background of a window needs to be
  6421.     repainted.  To intercept this event use the EVT_ERASE_BACKGROUND event
  6422.     binder.  On some platforms, such as GTK+, this event is simulated
  6423.     (simply generated just before the paint event) and may cause flicker.
  6424.  
  6425.     To paint a custom background use the `GetDC` method and use the returned
  6426.     device context if it is not ``None``, otherwise create a temporary
  6427.     `wx.ClientDC` and draw on that.
  6428.  
  6429.     '''
  6430.     
  6431.     def __repr__(self):
  6432.         return '<%s.%s; proxy of C++ wxEraseEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6433.  
  6434.     
  6435.     def __init__(self, *args, **kwargs):
  6436.         '''
  6437.         __init__(self, int Id=0, DC dc=None) -> EraseEvent
  6438.  
  6439.         Constructor
  6440.         '''
  6441.         newobj = _core_.new_EraseEvent(*args, **kwargs)
  6442.         self.this = newobj.this
  6443.         self.thisown = 1
  6444.         del newobj.thisown
  6445.  
  6446.     
  6447.     def GetDC(*args, **kwargs):
  6448.         '''
  6449.         GetDC(self) -> DC
  6450.  
  6451.         Returns the device context the event handler should draw upon.  If
  6452.         ``None`` is returned then create a temporary `wx.ClientDC` and use
  6453.         that instead.
  6454.         '''
  6455.         return _core_.EraseEvent_GetDC(*args, **kwargs)
  6456.  
  6457.  
  6458.  
  6459. class EraseEventPtr(EraseEvent):
  6460.     
  6461.     def __init__(self, this):
  6462.         self.this = this
  6463.         if not hasattr(self, 'thisown'):
  6464.             self.thisown = 0
  6465.         
  6466.         self.__class__ = EraseEvent
  6467.  
  6468.  
  6469. _core_.EraseEvent_swigregister(EraseEventPtr)
  6470.  
  6471. class FocusEvent(Event):
  6472.     """
  6473.     A focus event is sent when a window's focus changes. The window losing
  6474.     focus receives an EVT_KILL_FOCUS event while the window gaining it
  6475.     gets an EVT_SET_FOCUS event.
  6476.  
  6477.     Notice that the set focus event happens both when the user gives focus
  6478.     to the window (whether using the mouse or keyboard) and when it is
  6479.     done from the program itself using `wx.Window.SetFocus`.
  6480.  
  6481.     """
  6482.     
  6483.     def __repr__(self):
  6484.         return '<%s.%s; proxy of C++ wxFocusEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6485.  
  6486.     
  6487.     def __init__(self, *args, **kwargs):
  6488.         '''
  6489.         __init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent
  6490.  
  6491.         Constructor
  6492.         '''
  6493.         newobj = _core_.new_FocusEvent(*args, **kwargs)
  6494.         self.this = newobj.this
  6495.         self.thisown = 1
  6496.         del newobj.thisown
  6497.  
  6498.     
  6499.     def GetWindow(*args, **kwargs):
  6500.         '''
  6501.         GetWindow(self) -> Window
  6502.  
  6503.         Returns the other window associated with this event, that is the
  6504.         window which had the focus before for the EVT_SET_FOCUS event and the
  6505.         window which is going to receive focus for the wxEVT_KILL_FOCUS event.
  6506.  
  6507.         Warning: the window returned may be None!
  6508.         '''
  6509.         return _core_.FocusEvent_GetWindow(*args, **kwargs)
  6510.  
  6511.     
  6512.     def SetWindow(*args, **kwargs):
  6513.         '''SetWindow(self, Window win)'''
  6514.         return _core_.FocusEvent_SetWindow(*args, **kwargs)
  6515.  
  6516.  
  6517.  
  6518. class FocusEventPtr(FocusEvent):
  6519.     
  6520.     def __init__(self, this):
  6521.         self.this = this
  6522.         if not hasattr(self, 'thisown'):
  6523.             self.thisown = 0
  6524.         
  6525.         self.__class__ = FocusEvent
  6526.  
  6527.  
  6528. _core_.FocusEvent_swigregister(FocusEventPtr)
  6529.  
  6530. class ChildFocusEvent(CommandEvent):
  6531.     '''
  6532.     wx.ChildFocusEvent notifies the parent that a child has received the
  6533.     focus.  Unlike `wx.FocusEvent` it is propagated up the window
  6534.     heirarchy.
  6535.     '''
  6536.     
  6537.     def __repr__(self):
  6538.         return '<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6539.  
  6540.     
  6541.     def __init__(self, *args, **kwargs):
  6542.         '''
  6543.         __init__(self, Window win=None) -> ChildFocusEvent
  6544.  
  6545.         Constructor
  6546.         '''
  6547.         newobj = _core_.new_ChildFocusEvent(*args, **kwargs)
  6548.         self.this = newobj.this
  6549.         self.thisown = 1
  6550.         del newobj.thisown
  6551.  
  6552.     
  6553.     def GetWindow(*args, **kwargs):
  6554.         '''
  6555.         GetWindow(self) -> Window
  6556.  
  6557.         The window which has just received the focus.
  6558.         '''
  6559.         return _core_.ChildFocusEvent_GetWindow(*args, **kwargs)
  6560.  
  6561.  
  6562.  
  6563. class ChildFocusEventPtr(ChildFocusEvent):
  6564.     
  6565.     def __init__(self, this):
  6566.         self.this = this
  6567.         if not hasattr(self, 'thisown'):
  6568.             self.thisown = 0
  6569.         
  6570.         self.__class__ = ChildFocusEvent
  6571.  
  6572.  
  6573. _core_.ChildFocusEvent_swigregister(ChildFocusEventPtr)
  6574.  
  6575. class ActivateEvent(Event):
  6576.     '''
  6577.     An activate event is sent when a top-level window or the entire
  6578.     application is being activated or deactivated.
  6579.  
  6580.     A top-level window (a dialog or frame) receives an activate event when
  6581.     is being activated or deactivated. This is indicated visually by the
  6582.     title bar changing colour, and a subwindow gaining the keyboard focus.
  6583.     An application is activated or deactivated when one of its frames
  6584.     becomes activated, or a frame becomes inactivate resulting in all
  6585.     application frames being inactive.
  6586.  
  6587.     Please note that usually you should call event.Skip() in your handlers
  6588.     for these events so the default handlers will still be called, as not
  6589.     doing so can result in strange effects.
  6590.  
  6591.     '''
  6592.     
  6593.     def __repr__(self):
  6594.         return '<%s.%s; proxy of C++ wxActivateEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6595.  
  6596.     
  6597.     def __init__(self, *args, **kwargs):
  6598.         '''
  6599.         __init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent
  6600.  
  6601.         Constructor
  6602.         '''
  6603.         newobj = _core_.new_ActivateEvent(*args, **kwargs)
  6604.         self.this = newobj.this
  6605.         self.thisown = 1
  6606.         del newobj.thisown
  6607.  
  6608.     
  6609.     def GetActive(*args, **kwargs):
  6610.         '''
  6611.         GetActive(self) -> bool
  6612.  
  6613.         Returns true if the application or window is being activated, false
  6614.         otherwise.
  6615.         '''
  6616.         return _core_.ActivateEvent_GetActive(*args, **kwargs)
  6617.  
  6618.  
  6619.  
  6620. class ActivateEventPtr(ActivateEvent):
  6621.     
  6622.     def __init__(self, this):
  6623.         self.this = this
  6624.         if not hasattr(self, 'thisown'):
  6625.             self.thisown = 0
  6626.         
  6627.         self.__class__ = ActivateEvent
  6628.  
  6629.  
  6630. _core_.ActivateEvent_swigregister(ActivateEventPtr)
  6631.  
  6632. class InitDialogEvent(Event):
  6633.     '''
  6634.     A wx.InitDialogEvent is sent as a dialog is being initialised, or for
  6635.     any window when `wx.Window.InitDialog` is called.  Handlers for this
  6636.     event can transfer data to the window, or anything else that should be
  6637.     done before the user begins editing the form. The default handler
  6638.     calls `wx.Window.TransferDataToWindow`.
  6639.     '''
  6640.     
  6641.     def __repr__(self):
  6642.         return '<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6643.  
  6644.     
  6645.     def __init__(self, *args, **kwargs):
  6646.         '''
  6647.         __init__(self, int Id=0) -> InitDialogEvent
  6648.  
  6649.         Constructor
  6650.         '''
  6651.         newobj = _core_.new_InitDialogEvent(*args, **kwargs)
  6652.         self.this = newobj.this
  6653.         self.thisown = 1
  6654.         del newobj.thisown
  6655.  
  6656.  
  6657.  
  6658. class InitDialogEventPtr(InitDialogEvent):
  6659.     
  6660.     def __init__(self, this):
  6661.         self.this = this
  6662.         if not hasattr(self, 'thisown'):
  6663.             self.thisown = 0
  6664.         
  6665.         self.__class__ = InitDialogEvent
  6666.  
  6667.  
  6668. _core_.InitDialogEvent_swigregister(InitDialogEventPtr)
  6669.  
  6670. class MenuEvent(Event):
  6671.     '''
  6672.     This class is used for a variety of menu-related events.  Note that
  6673.     these do not include menu command events, which are handled by sending
  6674.     `wx.CommandEvent` objects.
  6675.  
  6676.     The default handler for wx.EVT_MENU_HIGHLIGHT displays menu item help
  6677.     text in the first field of the status bar.
  6678.     '''
  6679.     
  6680.     def __repr__(self):
  6681.         return '<%s.%s; proxy of C++ wxMenuEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6682.  
  6683.     
  6684.     def __init__(self, *args, **kwargs):
  6685.         '''
  6686.         __init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent
  6687.  
  6688.         Constructor
  6689.         '''
  6690.         newobj = _core_.new_MenuEvent(*args, **kwargs)
  6691.         self.this = newobj.this
  6692.         self.thisown = 1
  6693.         del newobj.thisown
  6694.  
  6695.     
  6696.     def GetMenuId(*args, **kwargs):
  6697.         '''
  6698.         GetMenuId(self) -> int
  6699.  
  6700.         Returns the menu identifier associated with the event. This method
  6701.         should be only used with the HIGHLIGHT events.
  6702.         '''
  6703.         return _core_.MenuEvent_GetMenuId(*args, **kwargs)
  6704.  
  6705.     
  6706.     def IsPopup(*args, **kwargs):
  6707.         '''
  6708.         IsPopup(self) -> bool
  6709.  
  6710.         Returns ``True`` if the menu which is being opened or closed is a
  6711.         popup menu, ``False`` if it is a normal one.  This method should only
  6712.         be used with the OPEN and CLOSE events.
  6713.         '''
  6714.         return _core_.MenuEvent_IsPopup(*args, **kwargs)
  6715.  
  6716.     
  6717.     def GetMenu(*args, **kwargs):
  6718.         '''
  6719.         GetMenu(self) -> Menu
  6720.  
  6721.         Returns the menu which is being opened or closed. This method should
  6722.         only be used with the OPEN and CLOSE events.
  6723.         '''
  6724.         return _core_.MenuEvent_GetMenu(*args, **kwargs)
  6725.  
  6726.  
  6727.  
  6728. class MenuEventPtr(MenuEvent):
  6729.     
  6730.     def __init__(self, this):
  6731.         self.this = this
  6732.         if not hasattr(self, 'thisown'):
  6733.             self.thisown = 0
  6734.         
  6735.         self.__class__ = MenuEvent
  6736.  
  6737.  
  6738. _core_.MenuEvent_swigregister(MenuEventPtr)
  6739.  
  6740. class CloseEvent(Event):
  6741.     """
  6742.     This event class contains information about window and session close
  6743.     events.
  6744.  
  6745.     The handler function for EVT_CLOSE is called when the user has tried
  6746.     to close a a frame or dialog box using the window manager controls or
  6747.     the system menu. It can also be invoked by the application itself
  6748.     programmatically, for example by calling the `wx.Window.Close`
  6749.     function.
  6750.  
  6751.     You should check whether the application is forcing the deletion of
  6752.     the window using `CanVeto`. If it returns ``False``, you must destroy
  6753.     the window using `wx.Window.Destroy`. If the return value is ``True``,
  6754.     it is up to you whether you respond by destroying the window or not.
  6755.     For example you may wish to display a message dialog prompting to save
  6756.     files or to cancel the close.
  6757.  
  6758.     If you don't destroy the window, you should call `Veto` to let the
  6759.     calling code know that you did not destroy the window. This allows the
  6760.     `wx.Window.Close` function to return ``True`` or ``False`` depending
  6761.     on whether the close instruction was honored or not.
  6762.     """
  6763.     
  6764.     def __repr__(self):
  6765.         return '<%s.%s; proxy of C++ wxCloseEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6766.  
  6767.     
  6768.     def __init__(self, *args, **kwargs):
  6769.         '''
  6770.         __init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent
  6771.  
  6772.         Constructor.
  6773.         '''
  6774.         newobj = _core_.new_CloseEvent(*args, **kwargs)
  6775.         self.this = newobj.this
  6776.         self.thisown = 1
  6777.         del newobj.thisown
  6778.  
  6779.     
  6780.     def SetLoggingOff(*args, **kwargs):
  6781.         """
  6782.         SetLoggingOff(self, bool logOff)
  6783.  
  6784.         Sets the 'logging off' flag.
  6785.         """
  6786.         return _core_.CloseEvent_SetLoggingOff(*args, **kwargs)
  6787.  
  6788.     
  6789.     def GetLoggingOff(*args, **kwargs):
  6790.         """
  6791.         GetLoggingOff(self) -> bool
  6792.  
  6793.         Returns ``True`` if the user is logging off or ``False`` if the
  6794.         system is shutting down. This method can only be called for end
  6795.         session and query end session events, it doesn't make sense for close
  6796.         window event.
  6797.         """
  6798.         return _core_.CloseEvent_GetLoggingOff(*args, **kwargs)
  6799.  
  6800.     
  6801.     def Veto(*args, **kwargs):
  6802.         '''
  6803.         Veto(self, bool veto=True)
  6804.  
  6805.         Call this from your event handler to veto a system shutdown or to
  6806.         signal to the calling application that a window close did not happen.
  6807.  
  6808.         You can only veto a shutdown or close if `CanVeto` returns true.
  6809.         '''
  6810.         return _core_.CloseEvent_Veto(*args, **kwargs)
  6811.  
  6812.     
  6813.     def GetVeto(*args, **kwargs):
  6814.         '''GetVeto(self) -> bool'''
  6815.         return _core_.CloseEvent_GetVeto(*args, **kwargs)
  6816.  
  6817.     
  6818.     def SetCanVeto(*args, **kwargs):
  6819.         """
  6820.         SetCanVeto(self, bool canVeto)
  6821.  
  6822.         Sets the 'can veto' flag.
  6823.         """
  6824.         return _core_.CloseEvent_SetCanVeto(*args, **kwargs)
  6825.  
  6826.     
  6827.     def CanVeto(*args, **kwargs):
  6828.         '''
  6829.         CanVeto(self) -> bool
  6830.  
  6831.         Returns true if you can veto a system shutdown or a window close
  6832.         event. Vetoing a window close event is not possible if the calling
  6833.         code wishes to force the application to exit, and so this function
  6834.         must be called to check this.
  6835.         '''
  6836.         return _core_.CloseEvent_CanVeto(*args, **kwargs)
  6837.  
  6838.  
  6839.  
  6840. class CloseEventPtr(CloseEvent):
  6841.     
  6842.     def __init__(self, this):
  6843.         self.this = this
  6844.         if not hasattr(self, 'thisown'):
  6845.             self.thisown = 0
  6846.         
  6847.         self.__class__ = CloseEvent
  6848.  
  6849.  
  6850. _core_.CloseEvent_swigregister(CloseEventPtr)
  6851.  
  6852. class ShowEvent(Event):
  6853.     '''An EVT_SHOW event is sent when a window is shown or hidden.'''
  6854.     
  6855.     def __repr__(self):
  6856.         return '<%s.%s; proxy of C++ wxShowEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6857.  
  6858.     
  6859.     def __init__(self, *args, **kwargs):
  6860.         '''
  6861.         __init__(self, int winid=0, bool show=False) -> ShowEvent
  6862.  
  6863.         An EVT_SHOW event is sent when a window is shown or hidden.
  6864.         '''
  6865.         newobj = _core_.new_ShowEvent(*args, **kwargs)
  6866.         self.this = newobj.this
  6867.         self.thisown = 1
  6868.         del newobj.thisown
  6869.  
  6870.     
  6871.     def SetShow(*args, **kwargs):
  6872.         '''SetShow(self, bool show)'''
  6873.         return _core_.ShowEvent_SetShow(*args, **kwargs)
  6874.  
  6875.     
  6876.     def GetShow(*args, **kwargs):
  6877.         '''GetShow(self) -> bool'''
  6878.         return _core_.ShowEvent_GetShow(*args, **kwargs)
  6879.  
  6880.  
  6881.  
  6882. class ShowEventPtr(ShowEvent):
  6883.     
  6884.     def __init__(self, this):
  6885.         self.this = this
  6886.         if not hasattr(self, 'thisown'):
  6887.             self.thisown = 0
  6888.         
  6889.         self.__class__ = ShowEvent
  6890.  
  6891.  
  6892. _core_.ShowEvent_swigregister(ShowEventPtr)
  6893.  
  6894. class IconizeEvent(Event):
  6895.     '''
  6896.     An EVT_ICONIZE event is sent when a frame is iconized (minimized) or
  6897.     restored.
  6898.     '''
  6899.     
  6900.     def __repr__(self):
  6901.         return '<%s.%s; proxy of C++ wxIconizeEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6902.  
  6903.     
  6904.     def __init__(self, *args, **kwargs):
  6905.         '''
  6906.         __init__(self, int id=0, bool iconized=True) -> IconizeEvent
  6907.  
  6908.         An EVT_ICONIZE event is sent when a frame is iconized (minimized) or
  6909.         restored.
  6910.         '''
  6911.         newobj = _core_.new_IconizeEvent(*args, **kwargs)
  6912.         self.this = newobj.this
  6913.         self.thisown = 1
  6914.         del newobj.thisown
  6915.  
  6916.     
  6917.     def Iconized(*args, **kwargs):
  6918.         '''
  6919.         Iconized(self) -> bool
  6920.  
  6921.         Returns ``True`` if the frame has been iconized, ``False`` if it has
  6922.         been restored.
  6923.         '''
  6924.         return _core_.IconizeEvent_Iconized(*args, **kwargs)
  6925.  
  6926.  
  6927.  
  6928. class IconizeEventPtr(IconizeEvent):
  6929.     
  6930.     def __init__(self, this):
  6931.         self.this = this
  6932.         if not hasattr(self, 'thisown'):
  6933.             self.thisown = 0
  6934.         
  6935.         self.__class__ = IconizeEvent
  6936.  
  6937.  
  6938. _core_.IconizeEvent_swigregister(IconizeEventPtr)
  6939.  
  6940. class MaximizeEvent(Event):
  6941.     '''An EVT_MAXIMIZE event is sent when a frame is maximized or restored.'''
  6942.     
  6943.     def __repr__(self):
  6944.         return '<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6945.  
  6946.     
  6947.     def __init__(self, *args, **kwargs):
  6948.         '''
  6949.         __init__(self, int id=0) -> MaximizeEvent
  6950.  
  6951.         An EVT_MAXIMIZE event is sent when a frame is maximized or restored.
  6952.         '''
  6953.         newobj = _core_.new_MaximizeEvent(*args, **kwargs)
  6954.         self.this = newobj.this
  6955.         self.thisown = 1
  6956.         del newobj.thisown
  6957.  
  6958.  
  6959.  
  6960. class MaximizeEventPtr(MaximizeEvent):
  6961.     
  6962.     def __init__(self, this):
  6963.         self.this = this
  6964.         if not hasattr(self, 'thisown'):
  6965.             self.thisown = 0
  6966.         
  6967.         self.__class__ = MaximizeEvent
  6968.  
  6969.  
  6970. _core_.MaximizeEvent_swigregister(MaximizeEventPtr)
  6971.  
  6972. class DropFilesEvent(Event):
  6973.     '''
  6974.     This class is used for drop files events, that is, when files have
  6975.     been dropped onto the window. This functionality is only available
  6976.     under Windows. The window must have previously been enabled for
  6977.     dropping by calling `wx.Window.DragAcceptFiles`.
  6978.  
  6979.     Important note: this is a separate implementation to the more general
  6980.     drag and drop implementation using `wx.FileDropTarget`, and etc. This
  6981.     implementation uses the older, Windows message-based approach of
  6982.     dropping files.
  6983.  
  6984.     Use wx.EVT_DROP_FILES to bind an event handler to receive file drop
  6985.     events.
  6986.  
  6987.     '''
  6988.     
  6989.     def __init__(self):
  6990.         raise RuntimeError, 'No constructor defined'
  6991.  
  6992.     
  6993.     def __repr__(self):
  6994.         return '<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6995.  
  6996.     
  6997.     def GetPosition(*args, **kwargs):
  6998.         '''
  6999.         GetPosition(self) -> Point
  7000.  
  7001.         Returns the position at which the files were dropped.
  7002.         '''
  7003.         return _core_.DropFilesEvent_GetPosition(*args, **kwargs)
  7004.  
  7005.     
  7006.     def GetNumberOfFiles(*args, **kwargs):
  7007.         '''
  7008.         GetNumberOfFiles(self) -> int
  7009.  
  7010.         Returns the number of files dropped.
  7011.         '''
  7012.         return _core_.DropFilesEvent_GetNumberOfFiles(*args, **kwargs)
  7013.  
  7014.     
  7015.     def GetFiles(*args, **kwargs):
  7016.         '''
  7017.         GetFiles(self) -> PyObject
  7018.  
  7019.         Returns a list of the filenames that were dropped.
  7020.         '''
  7021.         return _core_.DropFilesEvent_GetFiles(*args, **kwargs)
  7022.  
  7023.  
  7024.  
  7025. class DropFilesEventPtr(DropFilesEvent):
  7026.     
  7027.     def __init__(self, this):
  7028.         self.this = this
  7029.         if not hasattr(self, 'thisown'):
  7030.             self.thisown = 0
  7031.         
  7032.         self.__class__ = DropFilesEvent
  7033.  
  7034.  
  7035. _core_.DropFilesEvent_swigregister(DropFilesEventPtr)
  7036. UPDATE_UI_PROCESS_ALL = _core_.UPDATE_UI_PROCESS_ALL
  7037. UPDATE_UI_PROCESS_SPECIFIED = _core_.UPDATE_UI_PROCESS_SPECIFIED
  7038.  
  7039. class UpdateUIEvent(CommandEvent):
  7040.     """
  7041.     This class is used for EVT_UPDATE_UI pseudo-events which are sent by
  7042.     wxWidgets to give an application the chance to update various user
  7043.     interface elements.
  7044.  
  7045.     Without update UI events, an application has to work hard to
  7046.     check/uncheck, enable/disable, and set the text for elements such as
  7047.     menu items and toolbar buttons. The code for doing this has to be
  7048.     mixed up with the code that is invoked when an action is invoked for a
  7049.     menu item or button.
  7050.  
  7051.     With update UI events, you define an event handler to look at the
  7052.     state of the application and change UI elements accordingly. wxWidgets
  7053.     will call your handler functions in idle time, so you don't have to
  7054.     worry where to call this code. In addition to being a clearer and more
  7055.     declarative method, it also means you don't have to worry whether
  7056.     you're updating a toolbar or menubar identifier. The same handler can
  7057.     update a menu item and toolbar button, if the ID values are the same.
  7058.  
  7059.     Instead of directly manipulating the menu or button, you call
  7060.     functions in the event object, such as `Check`. wxWidgets will
  7061.     determine whether such a call has been made, and which UI element to
  7062.     update.
  7063.  
  7064.     These events will work for popup menus as well as menubars. Just
  7065.     before a menu is popped up, `wx.Menu.UpdateUI` is called to process
  7066.     any UI events for the window that owns the menu.
  7067.  
  7068.     If you find that the overhead of UI update processing is affecting
  7069.     your application, you can do one or both of the following:
  7070.  
  7071.        1. Call `wx.UpdateUIEvent.SetMode` with a value of
  7072.           wx.UPDATE_UI_PROCESS_SPECIFIED, and set the extra style
  7073.           wx.WS_EX_PROCESS_UPDATE_EVENTS for every window that should
  7074.           receive update events. No other windows will receive update
  7075.           events.
  7076.  
  7077.        2. Call `wx.UpdateUIEvent.SetUpdateInterval` with a millisecond
  7078.           value to set the delay between updates. You may need to call
  7079.           `wx.Window.UpdateWindowUI` at critical points, for example when
  7080.           a dialog is about to be shown, in case the user sees a slight
  7081.           delay before windows are updated.
  7082.  
  7083.     Note that although events are sent in idle time, defining a EVT_IDLE
  7084.     handler for a window does not affect this because the events are sent
  7085.     from an internal idle handler.
  7086.  
  7087.     wxWidgets tries to optimize update events on some platforms. On
  7088.     Windows and GTK+, events for menubar items are only sent when the menu
  7089.     is about to be shown, and not in idle time.
  7090.  
  7091.     """
  7092.     
  7093.     def __repr__(self):
  7094.         return '<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7095.  
  7096.     
  7097.     def __init__(self, *args, **kwargs):
  7098.         '''
  7099.         __init__(self, int commandId=0) -> UpdateUIEvent
  7100.  
  7101.         Constructor
  7102.         '''
  7103.         newobj = _core_.new_UpdateUIEvent(*args, **kwargs)
  7104.         self.this = newobj.this
  7105.         self.thisown = 1
  7106.         del newobj.thisown
  7107.  
  7108.     
  7109.     def GetChecked(*args, **kwargs):
  7110.         '''
  7111.         GetChecked(self) -> bool
  7112.  
  7113.         Returns ``True`` if the UI element should be checked.
  7114.         '''
  7115.         return _core_.UpdateUIEvent_GetChecked(*args, **kwargs)
  7116.  
  7117.     
  7118.     def GetEnabled(*args, **kwargs):
  7119.         '''
  7120.         GetEnabled(self) -> bool
  7121.  
  7122.         Returns ``True`` if the UI element should be enabled.
  7123.         '''
  7124.         return _core_.UpdateUIEvent_GetEnabled(*args, **kwargs)
  7125.  
  7126.     
  7127.     def GetText(*args, **kwargs):
  7128.         '''
  7129.         GetText(self) -> String
  7130.  
  7131.         Returns the text that should be set for the UI element.
  7132.         '''
  7133.         return _core_.UpdateUIEvent_GetText(*args, **kwargs)
  7134.  
  7135.     
  7136.     def GetSetText(*args, **kwargs):
  7137.         '''
  7138.         GetSetText(self) -> bool
  7139.  
  7140.         Returns ``True`` if the application has called `SetText`. For
  7141.         wxWidgets internal use only.
  7142.         '''
  7143.         return _core_.UpdateUIEvent_GetSetText(*args, **kwargs)
  7144.  
  7145.     
  7146.     def GetSetChecked(*args, **kwargs):
  7147.         '''
  7148.         GetSetChecked(self) -> bool
  7149.  
  7150.         Returns ``True`` if the application has called `Check`. For wxWidgets
  7151.         internal use only.
  7152.         '''
  7153.         return _core_.UpdateUIEvent_GetSetChecked(*args, **kwargs)
  7154.  
  7155.     
  7156.     def GetSetEnabled(*args, **kwargs):
  7157.         '''
  7158.         GetSetEnabled(self) -> bool
  7159.  
  7160.         Returns ``True`` if the application has called `Enable`. For wxWidgets
  7161.         internal use only.
  7162.         '''
  7163.         return _core_.UpdateUIEvent_GetSetEnabled(*args, **kwargs)
  7164.  
  7165.     
  7166.     def Check(*args, **kwargs):
  7167.         '''
  7168.         Check(self, bool check)
  7169.  
  7170.         Check or uncheck the UI element.
  7171.         '''
  7172.         return _core_.UpdateUIEvent_Check(*args, **kwargs)
  7173.  
  7174.     
  7175.     def Enable(*args, **kwargs):
  7176.         '''
  7177.         Enable(self, bool enable)
  7178.  
  7179.         Enable or disable the UI element.
  7180.         '''
  7181.         return _core_.UpdateUIEvent_Enable(*args, **kwargs)
  7182.  
  7183.     
  7184.     def SetText(*args, **kwargs):
  7185.         '''
  7186.         SetText(self, String text)
  7187.  
  7188.         Sets the text for this UI element.
  7189.         '''
  7190.         return _core_.UpdateUIEvent_SetText(*args, **kwargs)
  7191.  
  7192.     
  7193.     def SetUpdateInterval(*args, **kwargs):
  7194.         '''
  7195.         SetUpdateInterval(long updateInterval)
  7196.  
  7197.         Sets the interval between updates in milliseconds. Set to -1 to
  7198.         disable updates, or to 0 to update as frequently as possible. The
  7199.         default is 0.
  7200.  
  7201.         Use this to reduce the overhead of UI update events if your
  7202.         application has a lot of windows. If you set the value to -1 or
  7203.         greater than 0, you may also need to call `wx.Window.UpdateWindowUI`
  7204.         at appropriate points in your application, such as when a dialog is
  7205.         about to be shown.
  7206.         '''
  7207.         return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs)
  7208.  
  7209.     SetUpdateInterval = staticmethod(SetUpdateInterval)
  7210.     
  7211.     def GetUpdateInterval(*args, **kwargs):
  7212.         '''
  7213.         GetUpdateInterval() -> long
  7214.  
  7215.         Returns the current interval between updates in milliseconds. -1
  7216.         disables updates, 0 updates as frequently as possible.
  7217.         '''
  7218.         return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs)
  7219.  
  7220.     GetUpdateInterval = staticmethod(GetUpdateInterval)
  7221.     
  7222.     def CanUpdate(*args, **kwargs):
  7223.         '''
  7224.         CanUpdate(Window win) -> bool
  7225.  
  7226.         Returns ``True`` if it is appropriate to update (send UI update events
  7227.         to) this window.
  7228.  
  7229.         This function looks at the mode used (see `wx.UpdateUIEvent.SetMode`),
  7230.         the wx.WS_EX_PROCESS_UPDATE_EVENTS flag in window, the time update
  7231.         events were last sent in idle time, and the update interval, to
  7232.         determine whether events should be sent to this window now. By default
  7233.         this will always return true because the update mode is initially
  7234.         wx.UPDATE_UI_PROCESS_ALL and the interval is set to 0; so update
  7235.         events will be sent as often as possible. You can reduce the frequency
  7236.         that events are sent by changing the mode and/or setting an update
  7237.         interval.
  7238.  
  7239.         '''
  7240.         return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs)
  7241.  
  7242.     CanUpdate = staticmethod(CanUpdate)
  7243.     
  7244.     def ResetUpdateTime(*args, **kwargs):
  7245.         '''
  7246.         ResetUpdateTime()
  7247.  
  7248.         Used internally to reset the last-updated time to the current time. It
  7249.         is assumed that update events are normally sent in idle time, so this
  7250.         is called at the end of idle processing.
  7251.         '''
  7252.         return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs)
  7253.  
  7254.     ResetUpdateTime = staticmethod(ResetUpdateTime)
  7255.     
  7256.     def SetMode(*args, **kwargs):
  7257.         '''
  7258.         SetMode(int mode)
  7259.  
  7260.         Specify how wxWidgets will send update events: to all windows, or only
  7261.         to those which specify that they will process the events.
  7262.  
  7263.         The mode may be one of the following values:
  7264.  
  7265.             =============================   ==========================================
  7266.             wxUPDATE_UI_PROCESS_ALL         Send UI update events to all windows.  This
  7267.                                             is the default setting.
  7268.             wxUPDATE_UI_PROCESS_SPECIFIED   Send UI update events only to windows that
  7269.                                             have the wx.WS_EX_PROCESS_UI_UPDATES extra
  7270.                                             style set.
  7271.             =============================   ==========================================
  7272.  
  7273.         '''
  7274.         return _core_.UpdateUIEvent_SetMode(*args, **kwargs)
  7275.  
  7276.     SetMode = staticmethod(SetMode)
  7277.     
  7278.     def GetMode(*args, **kwargs):
  7279.         '''
  7280.         GetMode() -> int
  7281.  
  7282.         Returns a value specifying how wxWidgets will send update events: to
  7283.         all windows, or only to those which specify that they will process the
  7284.         events.
  7285.         '''
  7286.         return _core_.UpdateUIEvent_GetMode(*args, **kwargs)
  7287.  
  7288.     GetMode = staticmethod(GetMode)
  7289.  
  7290.  
  7291. class UpdateUIEventPtr(UpdateUIEvent):
  7292.     
  7293.     def __init__(self, this):
  7294.         self.this = this
  7295.         if not hasattr(self, 'thisown'):
  7296.             self.thisown = 0
  7297.         
  7298.         self.__class__ = UpdateUIEvent
  7299.  
  7300.  
  7301. _core_.UpdateUIEvent_swigregister(UpdateUIEventPtr)
  7302.  
  7303. def UpdateUIEvent_SetUpdateInterval(*args, **kwargs):
  7304.     '''
  7305.     UpdateUIEvent_SetUpdateInterval(long updateInterval)
  7306.  
  7307.     Sets the interval between updates in milliseconds. Set to -1 to
  7308.     disable updates, or to 0 to update as frequently as possible. The
  7309.     default is 0.
  7310.  
  7311.     Use this to reduce the overhead of UI update events if your
  7312.     application has a lot of windows. If you set the value to -1 or
  7313.     greater than 0, you may also need to call `wx.Window.UpdateWindowUI`
  7314.     at appropriate points in your application, such as when a dialog is
  7315.     about to be shown.
  7316.     '''
  7317.     return _core_.UpdateUIEvent_SetUpdateInterval(*args, **kwargs)
  7318.  
  7319.  
  7320. def UpdateUIEvent_GetUpdateInterval(*args, **kwargs):
  7321.     '''
  7322.     UpdateUIEvent_GetUpdateInterval() -> long
  7323.  
  7324.     Returns the current interval between updates in milliseconds. -1
  7325.     disables updates, 0 updates as frequently as possible.
  7326.     '''
  7327.     return _core_.UpdateUIEvent_GetUpdateInterval(*args, **kwargs)
  7328.  
  7329.  
  7330. def UpdateUIEvent_CanUpdate(*args, **kwargs):
  7331.     '''
  7332.     UpdateUIEvent_CanUpdate(Window win) -> bool
  7333.  
  7334.     Returns ``True`` if it is appropriate to update (send UI update events
  7335.     to) this window.
  7336.  
  7337.     This function looks at the mode used (see `wx.UpdateUIEvent.SetMode`),
  7338.     the wx.WS_EX_PROCESS_UPDATE_EVENTS flag in window, the time update
  7339.     events were last sent in idle time, and the update interval, to
  7340.     determine whether events should be sent to this window now. By default
  7341.     this will always return true because the update mode is initially
  7342.     wx.UPDATE_UI_PROCESS_ALL and the interval is set to 0; so update
  7343.     events will be sent as often as possible. You can reduce the frequency
  7344.     that events are sent by changing the mode and/or setting an update
  7345.     interval.
  7346.  
  7347.     '''
  7348.     return _core_.UpdateUIEvent_CanUpdate(*args, **kwargs)
  7349.  
  7350.  
  7351. def UpdateUIEvent_ResetUpdateTime(*args, **kwargs):
  7352.     '''
  7353.     UpdateUIEvent_ResetUpdateTime()
  7354.  
  7355.     Used internally to reset the last-updated time to the current time. It
  7356.     is assumed that update events are normally sent in idle time, so this
  7357.     is called at the end of idle processing.
  7358.     '''
  7359.     return _core_.UpdateUIEvent_ResetUpdateTime(*args, **kwargs)
  7360.  
  7361.  
  7362. def UpdateUIEvent_SetMode(*args, **kwargs):
  7363.     '''
  7364.     UpdateUIEvent_SetMode(int mode)
  7365.  
  7366.     Specify how wxWidgets will send update events: to all windows, or only
  7367.     to those which specify that they will process the events.
  7368.  
  7369.     The mode may be one of the following values:
  7370.  
  7371.         =============================   ==========================================
  7372.         wxUPDATE_UI_PROCESS_ALL         Send UI update events to all windows.  This
  7373.                                         is the default setting.
  7374.         wxUPDATE_UI_PROCESS_SPECIFIED   Send UI update events only to windows that
  7375.                                         have the wx.WS_EX_PROCESS_UI_UPDATES extra
  7376.                                         style set.
  7377.         =============================   ==========================================
  7378.  
  7379.     '''
  7380.     return _core_.UpdateUIEvent_SetMode(*args, **kwargs)
  7381.  
  7382.  
  7383. def UpdateUIEvent_GetMode(*args, **kwargs):
  7384.     '''
  7385.     UpdateUIEvent_GetMode() -> int
  7386.  
  7387.     Returns a value specifying how wxWidgets will send update events: to
  7388.     all windows, or only to those which specify that they will process the
  7389.     events.
  7390.     '''
  7391.     return _core_.UpdateUIEvent_GetMode(*args, **kwargs)
  7392.  
  7393.  
  7394. class SysColourChangedEvent(Event):
  7395.     """
  7396.     This class is used for EVT_SYS_COLOUR_CHANGED, which are generated
  7397.     when the user changes the colour settings using the control
  7398.     panel. This is only applicable under Windows.
  7399.  
  7400.     The default event handler for this event propagates the event to child
  7401.     windows, since Windows only sends the events to top-level windows. If
  7402.     intercepting this event for a top-level window, remember to call
  7403.     `Skip` so the the base class handler will still be executed, or to
  7404.     pass the event on to the window's children explicitly.
  7405.  
  7406.     """
  7407.     
  7408.     def __repr__(self):
  7409.         return '<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7410.  
  7411.     
  7412.     def __init__(self, *args, **kwargs):
  7413.         '''
  7414.         __init__(self) -> SysColourChangedEvent
  7415.  
  7416.         Constructor
  7417.         '''
  7418.         newobj = _core_.new_SysColourChangedEvent(*args, **kwargs)
  7419.         self.this = newobj.this
  7420.         self.thisown = 1
  7421.         del newobj.thisown
  7422.  
  7423.  
  7424.  
  7425. class SysColourChangedEventPtr(SysColourChangedEvent):
  7426.     
  7427.     def __init__(self, this):
  7428.         self.this = this
  7429.         if not hasattr(self, 'thisown'):
  7430.             self.thisown = 0
  7431.         
  7432.         self.__class__ = SysColourChangedEvent
  7433.  
  7434.  
  7435. _core_.SysColourChangedEvent_swigregister(SysColourChangedEventPtr)
  7436.  
  7437. class MouseCaptureChangedEvent(Event):
  7438.     '''
  7439.     An mouse capture changed event (EVT_MOUSE_CAPTURE_CHANGED) is sent to
  7440.     a window that loses its mouse capture. This is called even if
  7441.     `wx.Window.ReleaseMouse` was called by the application code. Handling
  7442.     this event allows an application to cater for unexpected capture
  7443.     releases which might otherwise confuse mouse handling code.
  7444.  
  7445.     This event is implemented under Windows only.
  7446.     '''
  7447.     
  7448.     def __repr__(self):
  7449.         return '<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7450.  
  7451.     
  7452.     def __init__(self, *args, **kwargs):
  7453.         '''
  7454.         __init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent
  7455.  
  7456.         Constructor
  7457.         '''
  7458.         newobj = _core_.new_MouseCaptureChangedEvent(*args, **kwargs)
  7459.         self.this = newobj.this
  7460.         self.thisown = 1
  7461.         del newobj.thisown
  7462.  
  7463.     
  7464.     def GetCapturedWindow(*args, **kwargs):
  7465.         '''
  7466.         GetCapturedWindow(self) -> Window
  7467.  
  7468.         Returns the window that gained the capture, or ``None`` if it was a
  7469.         non-wxWidgets window.
  7470.         '''
  7471.         return _core_.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs)
  7472.  
  7473.  
  7474.  
  7475. class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent):
  7476.     
  7477.     def __init__(self, this):
  7478.         self.this = this
  7479.         if not hasattr(self, 'thisown'):
  7480.             self.thisown = 0
  7481.         
  7482.         self.__class__ = MouseCaptureChangedEvent
  7483.  
  7484.  
  7485. _core_.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr)
  7486.  
  7487. class DisplayChangedEvent(Event):
  7488.     '''
  7489.     An EVT_DISPLAY_CHANGED event is sent to all windows when the display
  7490.     resolution has changed.
  7491.  
  7492.     This event is implemented under Windows only.
  7493.     '''
  7494.     
  7495.     def __repr__(self):
  7496.         return '<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7497.  
  7498.     
  7499.     def __init__(self, *args, **kwargs):
  7500.         '''__init__(self) -> DisplayChangedEvent'''
  7501.         newobj = _core_.new_DisplayChangedEvent(*args, **kwargs)
  7502.         self.this = newobj.this
  7503.         self.thisown = 1
  7504.         del newobj.thisown
  7505.  
  7506.  
  7507.  
  7508. class DisplayChangedEventPtr(DisplayChangedEvent):
  7509.     
  7510.     def __init__(self, this):
  7511.         self.this = this
  7512.         if not hasattr(self, 'thisown'):
  7513.             self.thisown = 0
  7514.         
  7515.         self.__class__ = DisplayChangedEvent
  7516.  
  7517.  
  7518. _core_.DisplayChangedEvent_swigregister(DisplayChangedEventPtr)
  7519.  
  7520. class PaletteChangedEvent(Event):
  7521.     '''
  7522.     An EVT_PALETTE_CHANGED event is sent when the system palette has
  7523.     changed, thereby giving each window a chance to redo their own to
  7524.     match.
  7525.  
  7526.     This event is implemented under Windows only.
  7527.     '''
  7528.     
  7529.     def __repr__(self):
  7530.         return '<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7531.  
  7532.     
  7533.     def __init__(self, *args, **kwargs):
  7534.         '''
  7535.         __init__(self, int id=0) -> PaletteChangedEvent
  7536.  
  7537.         An EVT_PALETTE_CHANGED event is sent when the system palette has
  7538.         changed, thereby giving each window a chance to redo their own to
  7539.         match.
  7540.  
  7541.         This event is implemented under Windows only.
  7542.         '''
  7543.         newobj = _core_.new_PaletteChangedEvent(*args, **kwargs)
  7544.         self.this = newobj.this
  7545.         self.thisown = 1
  7546.         del newobj.thisown
  7547.  
  7548.     
  7549.     def SetChangedWindow(*args, **kwargs):
  7550.         '''SetChangedWindow(self, Window win)'''
  7551.         return _core_.PaletteChangedEvent_SetChangedWindow(*args, **kwargs)
  7552.  
  7553.     
  7554.     def GetChangedWindow(*args, **kwargs):
  7555.         '''GetChangedWindow(self) -> Window'''
  7556.         return _core_.PaletteChangedEvent_GetChangedWindow(*args, **kwargs)
  7557.  
  7558.  
  7559.  
  7560. class PaletteChangedEventPtr(PaletteChangedEvent):
  7561.     
  7562.     def __init__(self, this):
  7563.         self.this = this
  7564.         if not hasattr(self, 'thisown'):
  7565.             self.thisown = 0
  7566.         
  7567.         self.__class__ = PaletteChangedEvent
  7568.  
  7569.  
  7570. _core_.PaletteChangedEvent_swigregister(PaletteChangedEventPtr)
  7571.  
  7572. class QueryNewPaletteEvent(Event):
  7573.     '''
  7574.     An EVT_QUERY_NEW_PALETE event indicates the window is getting keyboard
  7575.     focus and should re-do its palette.
  7576.  
  7577.     This event is implemented under Windows only.
  7578.     '''
  7579.     
  7580.     def __repr__(self):
  7581.         return '<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7582.  
  7583.     
  7584.     def __init__(self, *args, **kwargs):
  7585.         '''
  7586.         __init__(self, int winid=0) -> QueryNewPaletteEvent
  7587.  
  7588.         Constructor.
  7589.         '''
  7590.         newobj = _core_.new_QueryNewPaletteEvent(*args, **kwargs)
  7591.         self.this = newobj.this
  7592.         self.thisown = 1
  7593.         del newobj.thisown
  7594.  
  7595.     
  7596.     def SetPaletteRealized(*args, **kwargs):
  7597.         '''
  7598.         SetPaletteRealized(self, bool realized)
  7599.  
  7600.         App should set this if it changes the palette.
  7601.         '''
  7602.         return _core_.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs)
  7603.  
  7604.     
  7605.     def GetPaletteRealized(*args, **kwargs):
  7606.         '''GetPaletteRealized(self) -> bool'''
  7607.         return _core_.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs)
  7608.  
  7609.  
  7610.  
  7611. class QueryNewPaletteEventPtr(QueryNewPaletteEvent):
  7612.     
  7613.     def __init__(self, this):
  7614.         self.this = this
  7615.         if not hasattr(self, 'thisown'):
  7616.             self.thisown = 0
  7617.         
  7618.         self.__class__ = QueryNewPaletteEvent
  7619.  
  7620.  
  7621. _core_.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr)
  7622.  
  7623. class NavigationKeyEvent(Event):
  7624.     """
  7625.     EVT_NAVIGATION_KEY events are used to control moving the focus between
  7626.     widgets, otherwise known as tab-traversal.  You woudl normally not
  7627.     catch navigation events in applications as there are already
  7628.     appropriate handlers in `wx.Dialog` and `wx.Panel`, but you may find
  7629.     it useful to send navigation events in certain situations to change
  7630.     the focus in certain ways, although it's probably easier to just call
  7631.     `wx.Window.Navigate`.
  7632.     """
  7633.     
  7634.     def __repr__(self):
  7635.         return '<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7636.  
  7637.     
  7638.     def __init__(self, *args, **kwargs):
  7639.         '''__init__(self) -> NavigationKeyEvent'''
  7640.         newobj = _core_.new_NavigationKeyEvent(*args, **kwargs)
  7641.         self.this = newobj.this
  7642.         self.thisown = 1
  7643.         del newobj.thisown
  7644.  
  7645.     
  7646.     def GetDirection(*args, **kwargs):
  7647.         '''
  7648.         GetDirection(self) -> bool
  7649.  
  7650.         Returns ``True`` if the direction is forward, ``False`` otherwise.
  7651.         '''
  7652.         return _core_.NavigationKeyEvent_GetDirection(*args, **kwargs)
  7653.  
  7654.     
  7655.     def SetDirection(*args, **kwargs):
  7656.         '''
  7657.         SetDirection(self, bool forward)
  7658.  
  7659.         Specify the direction that the navigation should take.  Usually the
  7660.         difference between using Tab and Shift-Tab.
  7661.         '''
  7662.         return _core_.NavigationKeyEvent_SetDirection(*args, **kwargs)
  7663.  
  7664.     
  7665.     def IsWindowChange(*args, **kwargs):
  7666.         '''
  7667.         IsWindowChange(self) -> bool
  7668.  
  7669.         Returns ``True`` if window change is allowed.
  7670.         '''
  7671.         return _core_.NavigationKeyEvent_IsWindowChange(*args, **kwargs)
  7672.  
  7673.     
  7674.     def SetWindowChange(*args, **kwargs):
  7675.         '''
  7676.         SetWindowChange(self, bool ischange)
  7677.  
  7678.         Specify if the navigation should be able to change parent windows.
  7679.         For example, changing notebook pages, etc. This is usually implemented
  7680.         by using Control-Tab.
  7681.         '''
  7682.         return _core_.NavigationKeyEvent_SetWindowChange(*args, **kwargs)
  7683.  
  7684.     
  7685.     def IsFromTab(*args, **kwargs):
  7686.         '''
  7687.         IsFromTab(self) -> bool
  7688.  
  7689.         Returns ``True`` if the navigation event is originated from the Tab
  7690.         key.
  7691.         '''
  7692.         return _core_.NavigationKeyEvent_IsFromTab(*args, **kwargs)
  7693.  
  7694.     
  7695.     def SetFromTab(*args, **kwargs):
  7696.         '''
  7697.         SetFromTab(self, bool bIs)
  7698.  
  7699.         Set to true under MSW if the event was generated using the tab key.
  7700.         This is required for proper navogation over radio buttons.
  7701.         '''
  7702.         return _core_.NavigationKeyEvent_SetFromTab(*args, **kwargs)
  7703.  
  7704.     
  7705.     def SetFlags(*args, **kwargs):
  7706.         '''
  7707.         SetFlags(self, long flags)
  7708.  
  7709.         Set the navigation flags to a combination of the following:
  7710.  
  7711.             * wx.NavigationKeyEvent.IsBackward
  7712.             * wx.NavigationKeyEvent.IsForward
  7713.             * wx.NavigationKeyEvent.WinChange
  7714.             * wx.NavigationKeyEvent.FromTab
  7715.  
  7716.         '''
  7717.         return _core_.NavigationKeyEvent_SetFlags(*args, **kwargs)
  7718.  
  7719.     
  7720.     def GetCurrentFocus(*args, **kwargs):
  7721.         '''
  7722.         GetCurrentFocus(self) -> Window
  7723.  
  7724.         Returns the child window which currenty has the focus.  May be
  7725.         ``None``.
  7726.         '''
  7727.         return _core_.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs)
  7728.  
  7729.     
  7730.     def SetCurrentFocus(*args, **kwargs):
  7731.         '''
  7732.         SetCurrentFocus(self, Window win)
  7733.  
  7734.         Set the window that has the focus.
  7735.         '''
  7736.         return _core_.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs)
  7737.  
  7738.     IsBackward = _core_.NavigationKeyEvent_IsBackward
  7739.     IsForward = _core_.NavigationKeyEvent_IsForward
  7740.     WinChange = _core_.NavigationKeyEvent_WinChange
  7741.     FromTab = _core_.NavigationKeyEvent_FromTab
  7742.  
  7743.  
  7744. class NavigationKeyEventPtr(NavigationKeyEvent):
  7745.     
  7746.     def __init__(self, this):
  7747.         self.this = this
  7748.         if not hasattr(self, 'thisown'):
  7749.             self.thisown = 0
  7750.         
  7751.         self.__class__ = NavigationKeyEvent
  7752.  
  7753.  
  7754. _core_.NavigationKeyEvent_swigregister(NavigationKeyEventPtr)
  7755.  
  7756. class WindowCreateEvent(CommandEvent):
  7757.     '''
  7758.     The EVT_WINDOW_CREATE event is sent as soon as the window object (the
  7759.     underlying GUI object) exists.
  7760.     '''
  7761.     
  7762.     def __repr__(self):
  7763.         return '<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7764.  
  7765.     
  7766.     def __init__(self, *args, **kwargs):
  7767.         '''
  7768.         __init__(self, Window win=None) -> WindowCreateEvent
  7769.  
  7770.         The EVT_WINDOW_CREATE event is sent as soon as the window object (the
  7771.         underlying GUI object) exists.
  7772.         '''
  7773.         newobj = _core_.new_WindowCreateEvent(*args, **kwargs)
  7774.         self.this = newobj.this
  7775.         self.thisown = 1
  7776.         del newobj.thisown
  7777.  
  7778.     
  7779.     def GetWindow(*args, **kwargs):
  7780.         '''
  7781.         GetWindow(self) -> Window
  7782.  
  7783.         Returns the window that this event refers to.
  7784.         '''
  7785.         return _core_.WindowCreateEvent_GetWindow(*args, **kwargs)
  7786.  
  7787.  
  7788.  
  7789. class WindowCreateEventPtr(WindowCreateEvent):
  7790.     
  7791.     def __init__(self, this):
  7792.         self.this = this
  7793.         if not hasattr(self, 'thisown'):
  7794.             self.thisown = 0
  7795.         
  7796.         self.__class__ = WindowCreateEvent
  7797.  
  7798.  
  7799. _core_.WindowCreateEvent_swigregister(WindowCreateEventPtr)
  7800.  
  7801. class WindowDestroyEvent(CommandEvent):
  7802.     '''
  7803.     The EVT_WINDOW_DESTROY event is sent from the `wx.Window` destructor
  7804.     when the GUI window is destroyed.
  7805.  
  7806.     When a class derived from `wx.Window` is destroyed its destructor will
  7807.     have already run by the time this event is sent. Therefore this event
  7808.     will not usually be received at all by the window itself.  Since it is
  7809.     received after the destructor has run, an object should not try to
  7810.     handle its own wx.WindowDestroyEvent, but it can be used to get
  7811.     notification of the destruction of another window.
  7812.     '''
  7813.     
  7814.     def __repr__(self):
  7815.         return '<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7816.  
  7817.     
  7818.     def __init__(self, *args, **kwargs):
  7819.         '''
  7820.         __init__(self, Window win=None) -> WindowDestroyEvent
  7821.  
  7822.         The EVT_WINDOW_DESTROY event is sent from the `wx.Window` destructor
  7823.         when the GUI window is destroyed.
  7824.  
  7825.         When a class derived from `wx.Window` is destroyed its destructor will
  7826.         have already run by the time this event is sent. Therefore this event
  7827.         will not usually be received at all by the window itself.  Since it is
  7828.         received after the destructor has run, an object should not try to
  7829.         handle its own wx.WindowDestroyEvent, but it can be used to get
  7830.         notification of the destruction of another window.
  7831.         '''
  7832.         newobj = _core_.new_WindowDestroyEvent(*args, **kwargs)
  7833.         self.this = newobj.this
  7834.         self.thisown = 1
  7835.         del newobj.thisown
  7836.  
  7837.     
  7838.     def GetWindow(*args, **kwargs):
  7839.         '''
  7840.         GetWindow(self) -> Window
  7841.  
  7842.         Returns the window that this event refers to.
  7843.         '''
  7844.         return _core_.WindowDestroyEvent_GetWindow(*args, **kwargs)
  7845.  
  7846.  
  7847.  
  7848. class WindowDestroyEventPtr(WindowDestroyEvent):
  7849.     
  7850.     def __init__(self, this):
  7851.         self.this = this
  7852.         if not hasattr(self, 'thisown'):
  7853.             self.thisown = 0
  7854.         
  7855.         self.__class__ = WindowDestroyEvent
  7856.  
  7857.  
  7858. _core_.WindowDestroyEvent_swigregister(WindowDestroyEventPtr)
  7859.  
  7860. class ContextMenuEvent(CommandEvent):
  7861.     '''
  7862.     This class is used for context menu events (EVT_CONTECT_MENU,) sent to
  7863.     give the application a chance to show a context (popup) menu.
  7864.     '''
  7865.     
  7866.     def __repr__(self):
  7867.         return '<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7868.  
  7869.     
  7870.     def __init__(self, *args, **kwargs):
  7871.         '''
  7872.         __init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent
  7873.  
  7874.         Constructor.
  7875.         '''
  7876.         newobj = _core_.new_ContextMenuEvent(*args, **kwargs)
  7877.         self.this = newobj.this
  7878.         self.thisown = 1
  7879.         del newobj.thisown
  7880.  
  7881.     
  7882.     def GetPosition(*args, **kwargs):
  7883.         '''
  7884.         GetPosition(self) -> Point
  7885.  
  7886.         Returns the position (in screen coordinants) at which the menu should
  7887.         be shown.
  7888.         '''
  7889.         return _core_.ContextMenuEvent_GetPosition(*args, **kwargs)
  7890.  
  7891.     
  7892.     def SetPosition(*args, **kwargs):
  7893.         '''
  7894.         SetPosition(self, Point pos)
  7895.  
  7896.         Sets the position at which the menu should be shown.
  7897.         '''
  7898.         return _core_.ContextMenuEvent_SetPosition(*args, **kwargs)
  7899.  
  7900.  
  7901.  
  7902. class ContextMenuEventPtr(ContextMenuEvent):
  7903.     
  7904.     def __init__(self, this):
  7905.         self.this = this
  7906.         if not hasattr(self, 'thisown'):
  7907.             self.thisown = 0
  7908.         
  7909.         self.__class__ = ContextMenuEvent
  7910.  
  7911.  
  7912. _core_.ContextMenuEvent_swigregister(ContextMenuEventPtr)
  7913. IDLE_PROCESS_ALL = _core_.IDLE_PROCESS_ALL
  7914. IDLE_PROCESS_SPECIFIED = _core_.IDLE_PROCESS_SPECIFIED
  7915.  
  7916. class IdleEvent(Event):
  7917.     '''
  7918.     This class is used for EVT_IDLE events, which are generated and sent
  7919.     when the application *becomes* idle.  In other words, the when the
  7920.     event queue becomes empty then idle events are sent to all windows (by
  7921.     default) and as long as none of them call `RequestMore` then there are
  7922.     no more idle events until after the system event queue has some normal
  7923.     events and then becomes empty again.
  7924.  
  7925.     By default, idle events are sent to all windows. If this is causing a
  7926.     significant overhead in your application, you can call
  7927.     `wx.IdleEvent.SetMode` with the value wx.IDLE_PROCESS_SPECIFIED, and
  7928.     set the wx.WS_EX_PROCESS_IDLE extra window style for every window
  7929.     which should receive idle events.  Then idle events will only be sent
  7930.     to those windows and not to any others.
  7931.     '''
  7932.     
  7933.     def __repr__(self):
  7934.         return '<%s.%s; proxy of C++ wxIdleEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7935.  
  7936.     
  7937.     def __init__(self, *args, **kwargs):
  7938.         '''
  7939.         __init__(self) -> IdleEvent
  7940.  
  7941.         Constructor
  7942.         '''
  7943.         newobj = _core_.new_IdleEvent(*args, **kwargs)
  7944.         self.this = newobj.this
  7945.         self.thisown = 1
  7946.         del newobj.thisown
  7947.  
  7948.     
  7949.     def RequestMore(*args, **kwargs):
  7950.         '''
  7951.         RequestMore(self, bool needMore=True)
  7952.  
  7953.         Tells wxWidgets that more processing is required. This function can be
  7954.         called by an EVT_IDLE handler for a window to indicate that the
  7955.         application should forward the EVT_IDLE event once more to the
  7956.         application windows. If no window calls this function during its
  7957.         EVT_IDLE handler, then the application will remain in a passive event
  7958.         loop until a new event is posted to the application by the windowing
  7959.         system.
  7960.         '''
  7961.         return _core_.IdleEvent_RequestMore(*args, **kwargs)
  7962.  
  7963.     
  7964.     def MoreRequested(*args, **kwargs):
  7965.         '''
  7966.         MoreRequested(self) -> bool
  7967.  
  7968.         Returns ``True`` if the OnIdle function processing this event
  7969.         requested more processing time.
  7970.         '''
  7971.         return _core_.IdleEvent_MoreRequested(*args, **kwargs)
  7972.  
  7973.     
  7974.     def SetMode(*args, **kwargs):
  7975.         '''
  7976.         SetMode(int mode)
  7977.  
  7978.         Static method for specifying how wxWidgets will send idle events: to
  7979.         all windows, or only to those which specify that they will process the
  7980.         events.
  7981.  
  7982.         The mode can be one of the following values:
  7983.  
  7984.             =========================   ========================================
  7985.             wx.IDLE_PROCESS_ALL         Send idle events to all windows
  7986.             wx.IDLE_PROCESS_SPECIFIED   Send idle events only to windows that have
  7987.                                         the wx.WS_EX_PROCESS_IDLE extra style
  7988.                                         flag set.
  7989.             =========================   ========================================
  7990.  
  7991.         '''
  7992.         return _core_.IdleEvent_SetMode(*args, **kwargs)
  7993.  
  7994.     SetMode = staticmethod(SetMode)
  7995.     
  7996.     def GetMode(*args, **kwargs):
  7997.         '''
  7998.         GetMode() -> int
  7999.  
  8000.         Static method returning a value specifying how wxWidgets will send
  8001.         idle events: to all windows, or only to those which specify that they
  8002.         will process the events.
  8003.         '''
  8004.         return _core_.IdleEvent_GetMode(*args, **kwargs)
  8005.  
  8006.     GetMode = staticmethod(GetMode)
  8007.     
  8008.     def CanSend(*args, **kwargs):
  8009.         '''
  8010.         CanSend(Window win) -> bool
  8011.  
  8012.         Returns ``True`` if it is appropriate to send idle events to this
  8013.         window.
  8014.  
  8015.         This function looks at the mode used (see `wx.IdleEvent.SetMode`), and
  8016.         the wx.WS_EX_PROCESS_IDLE style in window to determine whether idle
  8017.         events should be sent to this window now. By default this will always
  8018.         return ``True`` because the update mode is initially
  8019.         wx.IDLE_PROCESS_ALL. You can change the mode to only send idle events
  8020.         to windows with the wx.WS_EX_PROCESS_IDLE extra window style set.
  8021.         '''
  8022.         return _core_.IdleEvent_CanSend(*args, **kwargs)
  8023.  
  8024.     CanSend = staticmethod(CanSend)
  8025.  
  8026.  
  8027. class IdleEventPtr(IdleEvent):
  8028.     
  8029.     def __init__(self, this):
  8030.         self.this = this
  8031.         if not hasattr(self, 'thisown'):
  8032.             self.thisown = 0
  8033.         
  8034.         self.__class__ = IdleEvent
  8035.  
  8036.  
  8037. _core_.IdleEvent_swigregister(IdleEventPtr)
  8038.  
  8039. def IdleEvent_SetMode(*args, **kwargs):
  8040.     '''
  8041.     IdleEvent_SetMode(int mode)
  8042.  
  8043.     Static method for specifying how wxWidgets will send idle events: to
  8044.     all windows, or only to those which specify that they will process the
  8045.     events.
  8046.  
  8047.     The mode can be one of the following values:
  8048.  
  8049.         =========================   ========================================
  8050.         wx.IDLE_PROCESS_ALL         Send idle events to all windows
  8051.         wx.IDLE_PROCESS_SPECIFIED   Send idle events only to windows that have
  8052.                                     the wx.WS_EX_PROCESS_IDLE extra style
  8053.                                     flag set.
  8054.         =========================   ========================================
  8055.  
  8056.     '''
  8057.     return _core_.IdleEvent_SetMode(*args, **kwargs)
  8058.  
  8059.  
  8060. def IdleEvent_GetMode(*args, **kwargs):
  8061.     '''
  8062.     IdleEvent_GetMode() -> int
  8063.  
  8064.     Static method returning a value specifying how wxWidgets will send
  8065.     idle events: to all windows, or only to those which specify that they
  8066.     will process the events.
  8067.     '''
  8068.     return _core_.IdleEvent_GetMode(*args, **kwargs)
  8069.  
  8070.  
  8071. def IdleEvent_CanSend(*args, **kwargs):
  8072.     '''
  8073.     IdleEvent_CanSend(Window win) -> bool
  8074.  
  8075.     Returns ``True`` if it is appropriate to send idle events to this
  8076.     window.
  8077.  
  8078.     This function looks at the mode used (see `wx.IdleEvent.SetMode`), and
  8079.     the wx.WS_EX_PROCESS_IDLE style in window to determine whether idle
  8080.     events should be sent to this window now. By default this will always
  8081.     return ``True`` because the update mode is initially
  8082.     wx.IDLE_PROCESS_ALL. You can change the mode to only send idle events
  8083.     to windows with the wx.WS_EX_PROCESS_IDLE extra window style set.
  8084.     '''
  8085.     return _core_.IdleEvent_CanSend(*args, **kwargs)
  8086.  
  8087.  
  8088. class PyEvent(Event):
  8089.     '''
  8090.     wx.PyEvent can be used as a base class for implementing custom event
  8091.     types in Python.  You should derived from this class instead of
  8092.     `wx.Event` because this class is Python-aware and is able to transport
  8093.     its Python bits safely through the wxWidgets event system and have
  8094.     them still be there when the event handler is invoked.
  8095.  
  8096.     :see: `wx.PyCommandEvent`
  8097.  
  8098.     '''
  8099.     
  8100.     def __repr__(self):
  8101.         return '<%s.%s; proxy of C++ wxPyEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  8102.  
  8103.     
  8104.     def __init__(self, *args, **kwargs):
  8105.         '''__init__(self, int winid=0, wxEventType eventType=wxEVT_NULL) -> PyEvent'''
  8106.         newobj = _core_.new_PyEvent(*args, **kwargs)
  8107.         self.this = newobj.this
  8108.         self.thisown = 1
  8109.         del newobj.thisown
  8110.         self._SetSelf(self)
  8111.  
  8112.     
  8113.     def __del__(self, destroy = _core_.delete_PyEvent):
  8114.         '''__del__(self)'''
  8115.         
  8116.         try:
  8117.             if self.thisown:
  8118.                 destroy(self)
  8119.         except:
  8120.             pass
  8121.  
  8122.  
  8123.     
  8124.     def _SetSelf(*args, **kwargs):
  8125.         '''_SetSelf(self, PyObject self)'''
  8126.         return _core_.PyEvent__SetSelf(*args, **kwargs)
  8127.  
  8128.     
  8129.     def _GetSelf(*args, **kwargs):
  8130.         '''_GetSelf(self) -> PyObject'''
  8131.         return _core_.PyEvent__GetSelf(*args, **kwargs)
  8132.  
  8133.  
  8134.  
  8135. class PyEventPtr(PyEvent):
  8136.     
  8137.     def __init__(self, this):
  8138.         self.this = this
  8139.         if not hasattr(self, 'thisown'):
  8140.             self.thisown = 0
  8141.         
  8142.         self.__class__ = PyEvent
  8143.  
  8144.  
  8145. _core_.PyEvent_swigregister(PyEventPtr)
  8146.  
  8147. class PyCommandEvent(CommandEvent):
  8148.     '''
  8149.     wx.PyCommandEvent can be used as a base class for implementing custom
  8150.     event types in Python, where the event shoudl travel up to parent
  8151.     windows looking for a handler.  You should derived from this class
  8152.     instead of `wx.CommandEvent` because this class is Python-aware and is
  8153.     able to transport its Python bits safely through the wxWidgets event
  8154.     system and have them still be there when the event handler is invoked.
  8155.  
  8156.     :see: `wx.PyEvent`
  8157.  
  8158.     '''
  8159.     
  8160.     def __repr__(self):
  8161.         return '<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  8162.  
  8163.     
  8164.     def __init__(self, *args, **kwargs):
  8165.         '''__init__(self, wxEventType eventType=wxEVT_NULL, int id=0) -> PyCommandEvent'''
  8166.         newobj = _core_.new_PyCommandEvent(*args, **kwargs)
  8167.         self.this = newobj.this
  8168.         self.thisown = 1
  8169.         del newobj.thisown
  8170.         self._SetSelf(self)
  8171.  
  8172.     
  8173.     def __del__(self, destroy = _core_.delete_PyCommandEvent):
  8174.         '''__del__(self)'''
  8175.         
  8176.         try:
  8177.             if self.thisown:
  8178.                 destroy(self)
  8179.         except:
  8180.             pass
  8181.  
  8182.  
  8183.     
  8184.     def _SetSelf(*args, **kwargs):
  8185.         '''_SetSelf(self, PyObject self)'''
  8186.         return _core_.PyCommandEvent__SetSelf(*args, **kwargs)
  8187.  
  8188.     
  8189.     def _GetSelf(*args, **kwargs):
  8190.         '''_GetSelf(self) -> PyObject'''
  8191.         return _core_.PyCommandEvent__GetSelf(*args, **kwargs)
  8192.  
  8193.  
  8194.  
  8195. class PyCommandEventPtr(PyCommandEvent):
  8196.     
  8197.     def __init__(self, this):
  8198.         self.this = this
  8199.         if not hasattr(self, 'thisown'):
  8200.             self.thisown = 0
  8201.         
  8202.         self.__class__ = PyCommandEvent
  8203.  
  8204.  
  8205. _core_.PyCommandEvent_swigregister(PyCommandEventPtr)
  8206.  
  8207. class DateEvent(CommandEvent):
  8208.     '''
  8209.     This event class holds information about a date change event and is
  8210.     used together with `wx.DatePickerCtrl`. It also serves as a base class
  8211.     for `wx.calendar.CalendarEvent`.  Bind these event types with
  8212.     EVT_DATE_CHANGED.
  8213.     '''
  8214.     
  8215.     def __repr__(self):
  8216.         return '<%s.%s; proxy of C++ wxDateEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  8217.  
  8218.     
  8219.     def __init__(self, *args, **kwargs):
  8220.         '''__init__(self, Window win, DateTime dt, wxEventType type) -> DateEvent'''
  8221.         newobj = _core_.new_DateEvent(*args, **kwargs)
  8222.         self.this = newobj.this
  8223.         self.thisown = 1
  8224.         del newobj.thisown
  8225.  
  8226.     
  8227.     def GetDate(*args, **kwargs):
  8228.         '''
  8229.         GetDate(self) -> DateTime
  8230.  
  8231.         Returns the date.
  8232.         '''
  8233.         return _core_.DateEvent_GetDate(*args, **kwargs)
  8234.  
  8235.     
  8236.     def SetDate(*args, **kwargs):
  8237.         '''
  8238.         SetDate(self, DateTime date)
  8239.  
  8240.         Sets the date carried by the event, normally only used by the library
  8241.         internally.
  8242.         '''
  8243.         return _core_.DateEvent_SetDate(*args, **kwargs)
  8244.  
  8245.  
  8246.  
  8247. class DateEventPtr(DateEvent):
  8248.     
  8249.     def __init__(self, this):
  8250.         self.this = this
  8251.         if not hasattr(self, 'thisown'):
  8252.             self.thisown = 0
  8253.         
  8254.         self.__class__ = DateEvent
  8255.  
  8256.  
  8257. _core_.DateEvent_swigregister(DateEventPtr)
  8258. wxEVT_DATE_CHANGED = _core_.wxEVT_DATE_CHANGED
  8259. EVT_DATE_CHANGED = wx.PyEventBinder(wxEVT_DATE_CHANGED, 1)
  8260. PYAPP_ASSERT_SUPPRESS = _core_.PYAPP_ASSERT_SUPPRESS
  8261. PYAPP_ASSERT_EXCEPTION = _core_.PYAPP_ASSERT_EXCEPTION
  8262. PYAPP_ASSERT_DIALOG = _core_.PYAPP_ASSERT_DIALOG
  8263. PYAPP_ASSERT_LOG = _core_.PYAPP_ASSERT_LOG
  8264. PRINT_WINDOWS = _core_.PRINT_WINDOWS
  8265. PRINT_POSTSCRIPT = _core_.PRINT_POSTSCRIPT
  8266.  
  8267. class PyApp(EvtHandler):
  8268.     '''
  8269.     The ``wx.PyApp`` class is an *implementation detail*, please use the
  8270.     `wx.App` class (or some other derived class) instead.
  8271.     '''
  8272.     
  8273.     def __repr__(self):
  8274.         return '<%s.%s; proxy of C++ wxPyApp instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  8275.  
  8276.     
  8277.     def __init__(self, *args, **kwargs):
  8278.         '''
  8279.         __init__(self) -> PyApp
  8280.  
  8281.         Create a new application object, starting the bootstrap process.
  8282.         '''
  8283.         newobj = _core_.new_PyApp(*args, **kwargs)
  8284.         self.this = newobj.this
  8285.         self.thisown = 1
  8286.         del newobj.thisown
  8287.         self._setCallbackInfo(self, PyApp, False)
  8288.         self._setOORInfo(self, False)
  8289.  
  8290.     
  8291.     def __del__(self, destroy = _core_.delete_PyApp):
  8292.         '''__del__(self)'''
  8293.         
  8294.         try:
  8295.             if self.thisown:
  8296.                 destroy(self)
  8297.         except:
  8298.             pass
  8299.  
  8300.  
  8301.     
  8302.     def _setCallbackInfo(*args, **kwargs):
  8303.         '''_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)'''
  8304.         return _core_.PyApp__setCallbackInfo(*args, **kwargs)
  8305.  
  8306.     
  8307.     def GetAppName(*args, **kwargs):
  8308.         '''
  8309.         GetAppName(self) -> String
  8310.  
  8311.         Get the application name.
  8312.         '''
  8313.         return _core_.PyApp_GetAppName(*args, **kwargs)
  8314.  
  8315.     
  8316.     def SetAppName(*args, **kwargs):
  8317.         '''
  8318.         SetAppName(self, String name)
  8319.  
  8320.         Set the application name. This value may be used automatically by
  8321.         `wx.Config` and such.
  8322.         '''
  8323.         return _core_.PyApp_SetAppName(*args, **kwargs)
  8324.  
  8325.     
  8326.     def GetClassName(*args, **kwargs):
  8327.         """
  8328.         GetClassName(self) -> String
  8329.  
  8330.         Get the application's class name.
  8331.         """
  8332.         return _core_.PyApp_GetClassName(*args, **kwargs)
  8333.  
  8334.     
  8335.     def SetClassName(*args, **kwargs):
  8336.         """
  8337.         SetClassName(self, String name)
  8338.  
  8339.         Set the application's class name. This value may be used for
  8340.         X-resources if applicable for the platform
  8341.         """
  8342.         return _core_.PyApp_SetClassName(*args, **kwargs)
  8343.  
  8344.     
  8345.     def GetVendorName(*args, **kwargs):
  8346.         """
  8347.         GetVendorName(self) -> String
  8348.  
  8349.         Get the application's vendor name.
  8350.         """
  8351.         return _core_.PyApp_GetVendorName(*args, **kwargs)
  8352.  
  8353.     
  8354.     def SetVendorName(*args, **kwargs):
  8355.         """
  8356.         SetVendorName(self, String name)
  8357.  
  8358.         Set the application's vendor name. This value may be used
  8359.         automatically by `wx.Config` and such.
  8360.         """
  8361.         return _core_.PyApp_SetVendorName(*args, **kwargs)
  8362.  
  8363.     
  8364.     def GetTraits(*args, **kwargs):
  8365.         '''
  8366.         GetTraits(self) -> wxAppTraits
  8367.  
  8368.         Return (and create if necessary) the app traits object to which we
  8369.         delegate for everything which either should be configurable by the
  8370.         user (then he can change the default behaviour simply by overriding
  8371.         CreateTraits() and returning his own traits object) or which is
  8372.         GUI/console dependent as then wx.AppTraits allows us to abstract the
  8373.         differences behind the common facade.
  8374.  
  8375.         :todo: Add support for overriding CreateAppTraits in wxPython.
  8376.         '''
  8377.         return _core_.PyApp_GetTraits(*args, **kwargs)
  8378.  
  8379.     
  8380.     def ProcessPendingEvents(*args, **kwargs):
  8381.         '''
  8382.         ProcessPendingEvents(self)
  8383.  
  8384.         Process all events in the Pending Events list -- it is necessary to
  8385.         call this function to process posted events. This normally happens
  8386.         during each event loop iteration.
  8387.         '''
  8388.         return _core_.PyApp_ProcessPendingEvents(*args, **kwargs)
  8389.  
  8390.     
  8391.     def Yield(*args, **kwargs):
  8392.         """
  8393.         Yield(self, bool onlyIfNeeded=False) -> bool
  8394.  
  8395.         Process all currently pending events right now, instead of waiting
  8396.         until return to the event loop.  It is an error to call ``Yield``
  8397.         recursively unless the value of ``onlyIfNeeded`` is True.
  8398.  
  8399.         :warning: This function is dangerous as it can lead to unexpected
  8400.               reentrancies (i.e. when called from an event handler it may
  8401.               result in calling the same event handler again), use with
  8402.               extreme care or, better, don't use at all!
  8403.  
  8404.         :see: `wx.Yield`, `wx.YieldIfNeeded`, `wx.SafeYield`
  8405.  
  8406.         """
  8407.         return _core_.PyApp_Yield(*args, **kwargs)
  8408.  
  8409.     
  8410.     def WakeUpIdle(*args, **kwargs):
  8411.         '''
  8412.         WakeUpIdle(self)
  8413.  
  8414.         Make sure that idle events are sent again.
  8415.         :see: `wx.WakeUpIdle`
  8416.         '''
  8417.         return _core_.PyApp_WakeUpIdle(*args, **kwargs)
  8418.  
  8419.     
  8420.     def IsMainLoopRunning(*args, **kwargs):
  8421.         """
  8422.         IsMainLoopRunning() -> bool
  8423.  
  8424.         Returns True if we're running the main loop, i.e. if the events can
  8425.         currently be dispatched.
  8426.         """
  8427.         return _core_.PyApp_IsMainLoopRunning(*args, **kwargs)
  8428.  
  8429.     IsMainLoopRunning = staticmethod(IsMainLoopRunning)
  8430.     
  8431.     def MainLoop(*args, **kwargs):
  8432.         """
  8433.         MainLoop(self) -> int
  8434.  
  8435.         Execute the main GUI loop, the function doesn't normally return until
  8436.         all top level windows have been closed and destroyed.
  8437.         """
  8438.         return _core_.PyApp_MainLoop(*args, **kwargs)
  8439.  
  8440.     
  8441.     def Exit(*args, **kwargs):
  8442.         '''
  8443.         Exit(self)
  8444.  
  8445.         Exit the main loop thus terminating the application.
  8446.         :see: `wx.Exit`
  8447.         '''
  8448.         return _core_.PyApp_Exit(*args, **kwargs)
  8449.  
  8450.     
  8451.     def ExitMainLoop(*args, **kwargs):
  8452.         '''
  8453.         ExitMainLoop(self)
  8454.  
  8455.         Exit the main GUI loop during the next iteration of the main
  8456.         loop, (i.e. it does not stop the program immediately!)
  8457.         '''
  8458.         return _core_.PyApp_ExitMainLoop(*args, **kwargs)
  8459.  
  8460.     
  8461.     def Pending(*args, **kwargs):
  8462.         '''
  8463.         Pending(self) -> bool
  8464.  
  8465.         Returns True if there are unprocessed events in the event queue.
  8466.         '''
  8467.         return _core_.PyApp_Pending(*args, **kwargs)
  8468.  
  8469.     
  8470.     def Dispatch(*args, **kwargs):
  8471.         '''
  8472.         Dispatch(self) -> bool
  8473.  
  8474.         Process the first event in the event queue (blocks until an event
  8475.         appears if there are none currently)
  8476.         '''
  8477.         return _core_.PyApp_Dispatch(*args, **kwargs)
  8478.  
  8479.     
  8480.     def ProcessIdle(*args, **kwargs):
  8481.         '''
  8482.         ProcessIdle(self) -> bool
  8483.  
  8484.         Called from the MainLoop when the application becomes idle (there are
  8485.         no pending events) and sends a `wx.IdleEvent` to all interested
  8486.         parties.  Returns True if more idle events are needed, False if not.
  8487.         '''
  8488.         return _core_.PyApp_ProcessIdle(*args, **kwargs)
  8489.  
  8490.     
  8491.     def SendIdleEvents(*args, **kwargs):
  8492.         '''
  8493.         SendIdleEvents(self, Window win, IdleEvent event) -> bool
  8494.  
  8495.         Send idle event to window and all subwindows.  Returns True if more
  8496.         idle time is requested.
  8497.         '''
  8498.         return _core_.PyApp_SendIdleEvents(*args, **kwargs)
  8499.  
  8500.     
  8501.     def IsActive(*args, **kwargs):
  8502.         '''
  8503.         IsActive(self) -> bool
  8504.  
  8505.         Return True if our app has focus.
  8506.         '''
  8507.         return _core_.PyApp_IsActive(*args, **kwargs)
  8508.  
  8509.     
  8510.     def SetTopWindow(*args, **kwargs):
  8511.         '''
  8512.         SetTopWindow(self, Window win)
  8513.  
  8514.         Set the *main* top level window
  8515.         '''
  8516.         return _core_.PyApp_SetTopWindow(*args, **kwargs)
  8517.  
  8518.     
  8519.     def GetTopWindow(*args, **kwargs):
  8520.         """
  8521.         GetTopWindow(self) -> Window
  8522.  
  8523.         Return the *main* top level window (if it hadn't been set previously
  8524.         with SetTopWindow(), will return just some top level window and, if
  8525.         there not any, will return None)
  8526.         """
  8527.         return _core_.PyApp_GetTopWindow(*args, **kwargs)
  8528.  
  8529.     
  8530.     def SetExitOnFrameDelete(*args, **kwargs):
  8531.         """
  8532.         SetExitOnFrameDelete(self, bool flag)
  8533.  
  8534.         Control the exit behaviour: by default, the program will exit the main
  8535.         loop (and so, usually, terminate) when the last top-level program
  8536.         window is deleted.  Beware that if you disable this behaviour (with
  8537.         SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop()
  8538.         explicitly from somewhere.
  8539.         """
  8540.         return _core_.PyApp_SetExitOnFrameDelete(*args, **kwargs)
  8541.  
  8542.     
  8543.     def GetExitOnFrameDelete(*args, **kwargs):
  8544.         '''
  8545.         GetExitOnFrameDelete(self) -> bool
  8546.  
  8547.         Get the current exit behaviour setting.
  8548.         '''
  8549.         return _core_.PyApp_GetExitOnFrameDelete(*args, **kwargs)
  8550.  
  8551.     
  8552.     def SetUseBestVisual(*args, **kwargs):
  8553.         '''
  8554.         SetUseBestVisual(self, bool flag)
  8555.  
  8556.         Set whether the app should try to use the best available visual on
  8557.         systems where more than one is available, (Sun, SGI, XFree86 4, etc.)
  8558.         '''
  8559.         return _core_.PyApp_SetUseBestVisual(*args, **kwargs)
  8560.  
  8561.     
  8562.     def GetUseBestVisual(*args, **kwargs):
  8563.         '''
  8564.         GetUseBestVisual(self) -> bool
  8565.  
  8566.         Get current UseBestVisual setting.
  8567.         '''
  8568.         return _core_.PyApp_GetUseBestVisual(*args, **kwargs)
  8569.  
  8570.     
  8571.     def SetPrintMode(*args, **kwargs):
  8572.         '''SetPrintMode(self, int mode)'''
  8573.         return _core_.PyApp_SetPrintMode(*args, **kwargs)
  8574.  
  8575.     
  8576.     def GetPrintMode(*args, **kwargs):
  8577.         '''GetPrintMode(self) -> int'''
  8578.         return _core_.PyApp_GetPrintMode(*args, **kwargs)
  8579.  
  8580.     
  8581.     def SetAssertMode(*args, **kwargs):
  8582.         '''
  8583.         SetAssertMode(self, int mode)
  8584.  
  8585.         Set the OnAssert behaviour for debug and hybrid builds.
  8586.         '''
  8587.         return _core_.PyApp_SetAssertMode(*args, **kwargs)
  8588.  
  8589.     
  8590.     def GetAssertMode(*args, **kwargs):
  8591.         '''
  8592.         GetAssertMode(self) -> int
  8593.  
  8594.         Get the current OnAssert behaviour setting.
  8595.         '''
  8596.         return _core_.PyApp_GetAssertMode(*args, **kwargs)
  8597.  
  8598.     
  8599.     def GetMacSupportPCMenuShortcuts(*args, **kwargs):
  8600.         '''GetMacSupportPCMenuShortcuts() -> bool'''
  8601.         return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
  8602.  
  8603.     GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts)
  8604.     
  8605.     def GetMacAboutMenuItemId(*args, **kwargs):
  8606.         '''GetMacAboutMenuItemId() -> long'''
  8607.         return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs)
  8608.  
  8609.     GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId)
  8610.     
  8611.     def GetMacPreferencesMenuItemId(*args, **kwargs):
  8612.         '''GetMacPreferencesMenuItemId() -> long'''
  8613.         return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
  8614.  
  8615.     GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId)
  8616.     
  8617.     def GetMacExitMenuItemId(*args, **kwargs):
  8618.         '''GetMacExitMenuItemId() -> long'''
  8619.         return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs)
  8620.  
  8621.     GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId)
  8622.     
  8623.     def GetMacHelpMenuTitleName(*args, **kwargs):
  8624.         '''GetMacHelpMenuTitleName() -> String'''
  8625.         return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs)
  8626.  
  8627.     GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName)
  8628.     
  8629.     def SetMacSupportPCMenuShortcuts(*args, **kwargs):
  8630.         '''SetMacSupportPCMenuShortcuts(bool val)'''
  8631.         return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
  8632.  
  8633.     SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts)
  8634.     
  8635.     def SetMacAboutMenuItemId(*args, **kwargs):
  8636.         '''SetMacAboutMenuItemId(long val)'''
  8637.         return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs)
  8638.  
  8639.     SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId)
  8640.     
  8641.     def SetMacPreferencesMenuItemId(*args, **kwargs):
  8642.         '''SetMacPreferencesMenuItemId(long val)'''
  8643.         return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
  8644.  
  8645.     SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId)
  8646.     
  8647.     def SetMacExitMenuItemId(*args, **kwargs):
  8648.         '''SetMacExitMenuItemId(long val)'''
  8649.         return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs)
  8650.  
  8651.     SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId)
  8652.     
  8653.     def SetMacHelpMenuTitleName(*args, **kwargs):
  8654.         '''SetMacHelpMenuTitleName(String val)'''
  8655.         return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs)
  8656.  
  8657.     SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName)
  8658.     
  8659.     def _BootstrapApp(*args, **kwargs):
  8660.         '''
  8661.         _BootstrapApp(self)
  8662.  
  8663.         For internal use only
  8664.         '''
  8665.         return _core_.PyApp__BootstrapApp(*args, **kwargs)
  8666.  
  8667.     
  8668.     def GetComCtl32Version(*args, **kwargs):
  8669.         """
  8670.         GetComCtl32Version() -> int
  8671.  
  8672.         Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if
  8673.         it wasn't found at all.  Raises an exception on non-Windows platforms.
  8674.         """
  8675.         return _core_.PyApp_GetComCtl32Version(*args, **kwargs)
  8676.  
  8677.     GetComCtl32Version = staticmethod(GetComCtl32Version)
  8678.  
  8679.  
  8680. class PyAppPtr(PyApp):
  8681.     
  8682.     def __init__(self, this):
  8683.         self.this = this
  8684.         if not hasattr(self, 'thisown'):
  8685.             self.thisown = 0
  8686.         
  8687.         self.__class__ = PyApp
  8688.  
  8689.  
  8690. _core_.PyApp_swigregister(PyAppPtr)
  8691.  
  8692. def PyApp_IsMainLoopRunning(*args, **kwargs):
  8693.     """
  8694.     PyApp_IsMainLoopRunning() -> bool
  8695.  
  8696.     Returns True if we're running the main loop, i.e. if the events can
  8697.     currently be dispatched.
  8698.     """
  8699.     return _core_.PyApp_IsMainLoopRunning(*args, **kwargs)
  8700.  
  8701.  
  8702. def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs):
  8703.     '''PyApp_GetMacSupportPCMenuShortcuts() -> bool'''
  8704.     return _core_.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs)
  8705.  
  8706.  
  8707. def PyApp_GetMacAboutMenuItemId(*args, **kwargs):
  8708.     '''PyApp_GetMacAboutMenuItemId() -> long'''
  8709.     return _core_.PyApp_GetMacAboutMenuItemId(*args, **kwargs)
  8710.  
  8711.  
  8712. def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs):
  8713.     '''PyApp_GetMacPreferencesMenuItemId() -> long'''
  8714.     return _core_.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs)
  8715.  
  8716.  
  8717. def PyApp_GetMacExitMenuItemId(*args, **kwargs):
  8718.     '''PyApp_GetMacExitMenuItemId() -> long'''
  8719.     return _core_.PyApp_GetMacExitMenuItemId(*args, **kwargs)
  8720.  
  8721.  
  8722. def PyApp_GetMacHelpMenuTitleName(*args, **kwargs):
  8723.     '''PyApp_GetMacHelpMenuTitleName() -> String'''
  8724.     return _core_.PyApp_GetMacHelpMenuTitleName(*args, **kwargs)
  8725.  
  8726.  
  8727. def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs):
  8728.     '''PyApp_SetMacSupportPCMenuShortcuts(bool val)'''
  8729.     return _core_.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs)
  8730.  
  8731.  
  8732. def PyApp_SetMacAboutMenuItemId(*args, **kwargs):
  8733.     '''PyApp_SetMacAboutMenuItemId(long val)'''
  8734.     return _core_.PyApp_SetMacAboutMenuItemId(*args, **kwargs)
  8735.  
  8736.  
  8737. def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs):
  8738.     '''PyApp_SetMacPreferencesMenuItemId(long val)'''
  8739.     return _core_.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs)
  8740.  
  8741.  
  8742. def PyApp_SetMacExitMenuItemId(*args, **kwargs):
  8743.     '''PyApp_SetMacExitMenuItemId(long val)'''
  8744.     return _core_.PyApp_SetMacExitMenuItemId(*args, **kwargs)
  8745.  
  8746.  
  8747. def PyApp_SetMacHelpMenuTitleName(*args, **kwargs):
  8748.     '''PyApp_SetMacHelpMenuTitleName(String val)'''
  8749.     return _core_.PyApp_SetMacHelpMenuTitleName(*args, **kwargs)
  8750.  
  8751.  
  8752. def PyApp_GetComCtl32Version(*args, **kwargs):
  8753.     """
  8754.     PyApp_GetComCtl32Version() -> int
  8755.  
  8756.     Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if
  8757.     it wasn't found at all.  Raises an exception on non-Windows platforms.
  8758.     """
  8759.     return _core_.PyApp_GetComCtl32Version(*args, **kwargs)
  8760.  
  8761.  
  8762. def Exit(*args, **kwargs):
  8763.     '''
  8764.     Exit()
  8765.  
  8766.     Force an exit of the application.  Convenience for wx.GetApp().Exit()
  8767.     '''
  8768.     return _core_.Exit(*args, **kwargs)
  8769.  
  8770.  
  8771. def Yield(*args, **kwargs):
  8772.     '''
  8773.     Yield() -> bool
  8774.  
  8775.     Yield to other apps/messages.  Convenience for wx.GetApp().Yield()
  8776.     '''
  8777.     return _core_.Yield(*args, **kwargs)
  8778.  
  8779.  
  8780. def YieldIfNeeded(*args, **kwargs):
  8781.     '''
  8782.     YieldIfNeeded() -> bool
  8783.  
  8784.     Yield to other apps/messages.  Convenience for wx.GetApp().Yield(True)
  8785.     '''
  8786.     return _core_.YieldIfNeeded(*args, **kwargs)
  8787.  
  8788.  
  8789. def SafeYield(*args, **kwargs):
  8790.     '''
  8791.     SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool
  8792.  
  8793.     This function is similar to `wx.Yield`, except that it disables the
  8794.     user input to all program windows before calling `wx.Yield` and
  8795.     re-enables it again afterwards. If ``win`` is not None, this window
  8796.     will remain enabled, allowing the implementation of some limited user
  8797.     interaction.
  8798.  
  8799.     :Returns: the result of the call to `wx.Yield`.
  8800.     '''
  8801.     return _core_.SafeYield(*args, **kwargs)
  8802.  
  8803.  
  8804. def WakeUpIdle(*args, **kwargs):
  8805.     '''
  8806.     WakeUpIdle()
  8807.  
  8808.     Cause the message queue to become empty again, so idle events will be
  8809.     sent.
  8810.     '''
  8811.     return _core_.WakeUpIdle(*args, **kwargs)
  8812.  
  8813.  
  8814. def PostEvent(*args, **kwargs):
  8815.     '''
  8816.     PostEvent(EvtHandler dest, Event event)
  8817.  
  8818.     Send an event to a window or other wx.EvtHandler to be processed
  8819.     later.
  8820.     '''
  8821.     return _core_.PostEvent(*args, **kwargs)
  8822.  
  8823.  
  8824. def App_CleanUp(*args, **kwargs):
  8825.     '''
  8826.     App_CleanUp()
  8827.  
  8828.     For internal use only, it is used to cleanup after wxWidgets when
  8829.     Python shuts down.
  8830.     '''
  8831.     return _core_.App_CleanUp(*args, **kwargs)
  8832.  
  8833.  
  8834. def GetApp(*args, **kwargs):
  8835.     '''
  8836.     GetApp() -> PyApp
  8837.  
  8838.     Return a reference to the current wx.App object.
  8839.     '''
  8840.     return _core_.GetApp(*args, **kwargs)
  8841.  
  8842.  
  8843. def SetDefaultPyEncoding(*args, **kwargs):
  8844.     '''
  8845.     SetDefaultPyEncoding(string encoding)
  8846.  
  8847.     Sets the encoding that wxPython will use when it needs to convert a
  8848.     Python string or unicode object to or from a wxString.
  8849.  
  8850.     The default encoding is the value of ``locale.getdefaultlocale()[1]``
  8851.     but please be aware that the default encoding within the same locale
  8852.     may be slightly different on different platforms.  For example, please
  8853.     see http://www.alanwood.net/demos/charsetdiffs.html for differences
  8854.     between the common latin/roman encodings.
  8855.     '''
  8856.     return _core_.SetDefaultPyEncoding(*args, **kwargs)
  8857.  
  8858.  
  8859. def GetDefaultPyEncoding(*args, **kwargs):
  8860.     '''
  8861.     GetDefaultPyEncoding() -> string
  8862.  
  8863.     Gets the current encoding that wxPython will use when it needs to
  8864.     convert a Python string or unicode object to or from a wxString.
  8865.     '''
  8866.     return _core_.GetDefaultPyEncoding(*args, **kwargs)
  8867.  
  8868.  
  8869. class PyOnDemandOutputWindow:
  8870.     """
  8871.     A class that can be used for redirecting Python's stdout and
  8872.     stderr streams.  It will do nothing until something is wrriten to
  8873.     the stream at which point it will create a Frame with a text area
  8874.     and write the text there.
  8875.     """
  8876.     
  8877.     def __init__(self, title = 'wxPython: stdout/stderr'):
  8878.         self.frame = None
  8879.         self.title = title
  8880.         self.pos = wx.DefaultPosition
  8881.         self.size = (450, 300)
  8882.         self.parent = None
  8883.  
  8884.     
  8885.     def SetParent(self, parent):
  8886.         """Set the window to be used as the popup Frame's parent."""
  8887.         self.parent = parent
  8888.  
  8889.     
  8890.     def CreateOutputWindow(self, st):
  8891.         self.frame = wx.Frame(self.parent, -1, self.title, self.pos, self.size, style = wx.DEFAULT_FRAME_STYLE)
  8892.         self.text = wx.TextCtrl(self.frame, -1, '', style = wx.TE_MULTILINE | wx.TE_READONLY)
  8893.         self.text.AppendText(st)
  8894.         self.frame.Show(True)
  8895.         EVT_CLOSE(self.frame, self.OnCloseWindow)
  8896.  
  8897.     
  8898.     def OnCloseWindow(self, event):
  8899.         if self.frame is not None:
  8900.             self.frame.Destroy()
  8901.         
  8902.         self.frame = None
  8903.         self.text = None
  8904.  
  8905.     
  8906.     def write(self, text):
  8907.         '''
  8908.         Create the output window if needed and write the string to it.
  8909.         If not called in the context of the gui thread then uses
  8910.         CallAfter to do the work there.
  8911.         '''
  8912.         if self.frame is None:
  8913.             if not wx.Thread_IsMain():
  8914.                 wx.CallAfter(self.CreateOutputWindow, text)
  8915.             else:
  8916.                 self.CreateOutputWindow(text)
  8917.         elif not wx.Thread_IsMain():
  8918.             wx.CallAfter(self.text.AppendText, text)
  8919.         else:
  8920.             self.text.AppendText(text)
  8921.  
  8922.     
  8923.     def close(self):
  8924.         if self.frame is not None:
  8925.             wx.CallAfter(self.frame.Close)
  8926.         
  8927.  
  8928.     
  8929.     def flush(self):
  8930.         pass
  8931.  
  8932.  
  8933. if not wx.Platform == '__WXMSW__':
  8934.     pass
  8935. _defRedirect = wx.Platform == '__WXMAC__'
  8936.  
  8937. class App(wx.PyApp):
  8938.     '''
  8939.     The ``wx.App`` class represents the application and is used to:
  8940.  
  8941.       * bootstrap the wxPython system and initialize the underlying
  8942.         gui toolkit
  8943.       * set and get application-wide properties
  8944.       * implement the windowing system main message or event loop,
  8945.         and to dispatch events to window instances
  8946.       * etc.
  8947.  
  8948.     Every application must have a ``wx.App`` instance, and all
  8949.     creation of UI objects should be delayed until after the
  8950.     ``wx.App`` object has been created in order to ensure that the gui
  8951.     platform and wxWidgets have been fully initialized.
  8952.  
  8953.     Normally you would derive from this class and implement an
  8954.     ``OnInit`` method that creates a frame and then calls
  8955.     ``self.SetTopWindow(frame)``.
  8956.  
  8957.     :see: `wx.PySimpleApp` for a simpler app class that can be used
  8958.            directly.
  8959.     '''
  8960.     outputWindowClass = PyOnDemandOutputWindow
  8961.     
  8962.     def __init__(self, redirect = _defRedirect, filename = None, useBestVisual = False, clearSigInt = True):
  8963.         '''
  8964.         Construct a ``wx.App`` object.  
  8965.  
  8966.         :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be
  8967.             redirected?  Defaults to True on Windows and Mac, False
  8968.             otherwise.  If `filename` is None then output will be
  8969.             redirected to a window that pops up as needed.  (You can
  8970.             control what kind of window is created for the output by
  8971.             resetting the class variable ``outputWindowClass`` to a
  8972.             class of your choosing.)
  8973.  
  8974.         :param filename: The name of a file to redirect output to, if
  8975.             redirect is True.
  8976.  
  8977.         :param useBestVisual: Should the app try to use the best
  8978.             available visual provided by the system (only relevant on
  8979.             systems that have more than one visual.)  This parameter
  8980.             must be used instead of calling `SetUseBestVisual` later
  8981.             on because it must be set before the underlying GUI
  8982.             toolkit is initialized.
  8983.  
  8984.         :param clearSigInt: Should SIGINT be cleared?  This allows the
  8985.             app to terminate upon a Ctrl-C in the console like other
  8986.             GUI apps will.
  8987.  
  8988.         :note: You should override OnInit to do applicaition
  8989.             initialization to ensure that the system, toolkit and
  8990.             wxWidgets are fully initialized.
  8991.         '''
  8992.         wx.PyApp.__init__(self)
  8993.         if wx.Platform == '__WXMAC__':
  8994.             
  8995.             try:
  8996.                 import MacOS
  8997.                 if not MacOS.WMAvailable():
  8998.                     print "This program needs access to the screen. Please run with 'pythonw',\nnot 'python', and only when you are logged in on the main display of\nyour Mac."
  8999.                     _sys.exit(1)
  9000.             except SystemExit:
  9001.                 raise 
  9002.             except:
  9003.                 None<EXCEPTION MATCH>SystemExit
  9004.             
  9005.  
  9006.         None<EXCEPTION MATCH>SystemExit
  9007.         self.SetUseBestVisual(useBestVisual)
  9008.         if clearSigInt:
  9009.             
  9010.             try:
  9011.                 import signal
  9012.                 signal.signal(signal.SIGINT, signal.SIG_DFL)
  9013.  
  9014.         
  9015.         self.stdioWin = None
  9016.         self.saveStdio = (_sys.stdout, _sys.stderr)
  9017.         if redirect:
  9018.             self.RedirectStdio(filename)
  9019.         
  9020.         wx.StandardPaths.Get().SetInstallPrefix(_sys.prefix)
  9021.         self._BootstrapApp()
  9022.  
  9023.     
  9024.     def __del__(self, destroy = wx.PyApp.__del__):
  9025.         self.RestoreStdio()
  9026.         destroy(self)
  9027.  
  9028.     
  9029.     def Destroy(self):
  9030.         wx.PyApp.Destroy(self)
  9031.         self.thisown = 0
  9032.  
  9033.     
  9034.     def SetTopWindow(self, frame):
  9035.         '''Set the "main" top level window'''
  9036.         if self.stdioWin:
  9037.             self.stdioWin.SetParent(frame)
  9038.         
  9039.         wx.PyApp.SetTopWindow(self, frame)
  9040.  
  9041.     
  9042.     def MainLoop(self):
  9043.         '''Execute the main GUI event loop'''
  9044.         wx.PyApp.MainLoop(self)
  9045.         self.RestoreStdio()
  9046.  
  9047.     
  9048.     def RedirectStdio(self, filename = None):
  9049.         '''Redirect sys.stdout and sys.stderr to a file or a popup window.'''
  9050.         if filename:
  9051.             _sys.stdout = _sys.stderr = open(filename, 'a')
  9052.         else:
  9053.             self.stdioWin = self.outputWindowClass()
  9054.             _sys.stdout = _sys.stderr = self.stdioWin
  9055.  
  9056.     
  9057.     def RestoreStdio(self):
  9058.         
  9059.         try:
  9060.             (_sys.stdout, _sys.stderr) = self.saveStdio
  9061.         except:
  9062.             pass
  9063.  
  9064.  
  9065.     
  9066.     def SetOutputWindowAttributes(self, title = None, pos = None, size = None):
  9067.         '''
  9068.         Set the title, position and/or size of the output window if
  9069.         the stdio has been redirected.  This should be called before
  9070.         any output would cause the output window to be created.
  9071.         '''
  9072.         if self.stdioWin:
  9073.             if title is not None:
  9074.                 self.stdioWin.title = title
  9075.             
  9076.             if pos is not None:
  9077.                 self.stdioWin.pos = pos
  9078.             
  9079.             if size is not None:
  9080.                 self.stdioWin.size = size
  9081.             
  9082.         
  9083.  
  9084.  
  9085. App_GetMacSupportPCMenuShortcuts = _core_.PyApp_GetMacSupportPCMenuShortcuts
  9086. App_GetMacAboutMenuItemId = _core_.PyApp_GetMacAboutMenuItemId
  9087. App_GetMacPreferencesMenuItemId = _core_.PyApp_GetMacPreferencesMenuItemId
  9088. App_GetMacExitMenuItemId = _core_.PyApp_GetMacExitMenuItemId
  9089. App_GetMacHelpMenuTitleName = _core_.PyApp_GetMacHelpMenuTitleName
  9090. App_SetMacSupportPCMenuShortcuts = _core_.PyApp_SetMacSupportPCMenuShortcuts
  9091. App_SetMacAboutMenuItemId = _core_.PyApp_SetMacAboutMenuItemId
  9092. App_SetMacPreferencesMenuItemId = _core_.PyApp_SetMacPreferencesMenuItemId
  9093. App_SetMacExitMenuItemId = _core_.PyApp_SetMacExitMenuItemId
  9094. App_SetMacHelpMenuTitleName = _core_.PyApp_SetMacHelpMenuTitleName
  9095. App_GetComCtl32Version = _core_.PyApp_GetComCtl32Version
  9096.  
  9097. class PySimpleApp(wx.App):
  9098.     """
  9099.     A simple application class.  You can just create one of these and
  9100.     then then make your top level windows later, and not have to worry
  9101.     about OnInit.  For example::
  9102.  
  9103.         app = wx.PySimpleApp()
  9104.         frame = wx.Frame(None, title='Hello World')
  9105.         frame.Show()
  9106.         app.MainLoop()
  9107.  
  9108.     :see: `wx.App` 
  9109.     """
  9110.     
  9111.     def __init__(self, redirect = False, filename = None, useBestVisual = False, clearSigInt = True):
  9112.         '''
  9113.         :see: `wx.App.__init__`
  9114.         '''
  9115.         wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
  9116.  
  9117.     
  9118.     def OnInit(self):
  9119.         return True
  9120.  
  9121.  
  9122.  
  9123. class PyWidgetTester(wx.App):
  9124.     
  9125.     def __init__(self, size = (250, 100)):
  9126.         self.size = size
  9127.         wx.App.__init__(self, 0)
  9128.  
  9129.     
  9130.     def OnInit(self):
  9131.         self.frame = wx.Frame(None, -1, 'Widget Tester', pos = (0, 0), size = self.size)
  9132.         self.SetTopWindow(self.frame)
  9133.         return True
  9134.  
  9135.     
  9136.     def SetWidget(self, widgetClass, *args, **kwargs):
  9137.         w = widgetClass(self.frame, *args, **kwargs)
  9138.         self.frame.Show(True)
  9139.  
  9140.  
  9141.  
  9142. class __wxPyCleanup:
  9143.     
  9144.     def __init__(self):
  9145.         self.cleanup = _core_.App_CleanUp
  9146.  
  9147.     
  9148.     def __del__(self):
  9149.         self.cleanup()
  9150.  
  9151.  
  9152. _sys.__wxPythonCleanup = __wxPyCleanup()
  9153.  
  9154. class EventLoop(object):
  9155.     '''Proxy of C++ EventLoop class'''
  9156.     
  9157.     def __repr__(self):
  9158.         return '<%s.%s; proxy of C++ wxEventLoop instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  9159.  
  9160.     
  9161.     def __init__(self, *args, **kwargs):
  9162.         '''__init__(self) -> EventLoop'''
  9163.         newobj = _core_.new_EventLoop(*args, **kwargs)
  9164.         self.this = newobj.this
  9165.         self.thisown = 1
  9166.         del newobj.thisown
  9167.  
  9168.     
  9169.     def __del__(self, destroy = _core_.delete_EventLoop):
  9170.         '''__del__(self)'''
  9171.         
  9172.         try:
  9173.             if self.thisown:
  9174.                 destroy(self)
  9175.         except:
  9176.             pass
  9177.  
  9178.  
  9179.     
  9180.     def Run(*args, **kwargs):
  9181.         '''Run(self) -> int'''
  9182.         return _core_.EventLoop_Run(*args, **kwargs)
  9183.  
  9184.     
  9185.     def Exit(*args, **kwargs):
  9186.         '''Exit(self, int rc=0)'''
  9187.         return _core_.EventLoop_Exit(*args, **kwargs)
  9188.  
  9189.     
  9190.     def Pending(*args, **kwargs):
  9191.         '''Pending(self) -> bool'''
  9192.         return _core_.EventLoop_Pending(*args, **kwargs)
  9193.  
  9194.     
  9195.     def Dispatch(*args, **kwargs):
  9196.         '''Dispatch(self) -> bool'''
  9197.         return _core_.EventLoop_Dispatch(*args, **kwargs)
  9198.  
  9199.     
  9200.     def IsRunning(*args, **kwargs):
  9201.         '''IsRunning(self) -> bool'''
  9202.         return _core_.EventLoop_IsRunning(*args, **kwargs)
  9203.  
  9204.     
  9205.     def GetActive(*args, **kwargs):
  9206.         '''GetActive() -> EventLoop'''
  9207.         return _core_.EventLoop_GetActive(*args, **kwargs)
  9208.  
  9209.     GetActive = staticmethod(GetActive)
  9210.     
  9211.     def SetActive(*args, **kwargs):
  9212.         '''SetActive(EventLoop loop)'''
  9213.         return _core_.EventLoop_SetActive(*args, **kwargs)
  9214.  
  9215.     SetActive = staticmethod(SetActive)
  9216.  
  9217.  
  9218. class EventLoopPtr(EventLoop):
  9219.     
  9220.     def __init__(self, this):
  9221.         self.this = this
  9222.         if not hasattr(self, 'thisown'):
  9223.             self.thisown = 0
  9224.         
  9225.         self.__class__ = EventLoop
  9226.  
  9227.  
  9228. _core_.EventLoop_swigregister(EventLoopPtr)
  9229.  
  9230. def EventLoop_GetActive(*args, **kwargs):
  9231.     '''EventLoop_GetActive() -> EventLoop'''
  9232.     return _core_.EventLoop_GetActive(*args, **kwargs)
  9233.  
  9234.  
  9235. def EventLoop_SetActive(*args, **kwargs):
  9236.     '''EventLoop_SetActive(EventLoop loop)'''
  9237.     return _core_.EventLoop_SetActive(*args, **kwargs)
  9238.  
  9239.  
  9240. class AcceleratorEntry(object):
  9241.     '''
  9242.     A class used to define items in an `wx.AcceleratorTable`.  wxPython
  9243.     programs can choose to use wx.AcceleratorEntry objects, but using a
  9244.     list of 3-tuple of integers (flags, keyCode, cmdID) usually works just
  9245.     as well.  See `__init__` for  of the tuple values.
  9246.  
  9247.     :see: `wx.AcceleratorTable`
  9248.     '''
  9249.     
  9250.     def __repr__(self):
  9251.         return '<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  9252.  
  9253.     
  9254.     def __init__(self, *args, **kwargs):
  9255.         '''
  9256.         __init__(self, int flags=0, int keyCode=0, int cmdID=0) -> AcceleratorEntry
  9257.  
  9258.         Construct a wx.AcceleratorEntry.
  9259.         '''
  9260.         newobj = _core_.new_AcceleratorEntry(*args, **kwargs)
  9261.         self.this = newobj.this
  9262.         self.thisown = 1
  9263.         del newobj.thisown
  9264.  
  9265.     
  9266.     def __del__(self, destroy = _core_.delete_AcceleratorEntry):
  9267.         '''__del__(self)'''
  9268.         
  9269.         try:
  9270.             if self.thisown:
  9271.                 destroy(self)
  9272.         except:
  9273.             pass
  9274.  
  9275.  
  9276.     
  9277.     def Set(*args, **kwargs):
  9278.         '''
  9279.         Set(self, int flags, int keyCode, int cmd)
  9280.  
  9281.         (Re)set the attributes of a wx.AcceleratorEntry.
  9282.         :see `__init__`
  9283.         '''
  9284.         return _core_.AcceleratorEntry_Set(*args, **kwargs)
  9285.  
  9286.     
  9287.     def GetFlags(*args, **kwargs):
  9288.         """
  9289.         GetFlags(self) -> int
  9290.  
  9291.         Get the AcceleratorEntry's flags.
  9292.         """
  9293.         return _core_.AcceleratorEntry_GetFlags(*args, **kwargs)
  9294.  
  9295.     
  9296.     def GetKeyCode(*args, **kwargs):
  9297.         """
  9298.         GetKeyCode(self) -> int
  9299.  
  9300.         Get the AcceleratorEntry's keycode.
  9301.         """
  9302.         return _core_.AcceleratorEntry_GetKeyCode(*args, **kwargs)
  9303.  
  9304.     
  9305.     def GetCommand(*args, **kwargs):
  9306.         """
  9307.         GetCommand(self) -> int
  9308.  
  9309.         Get the AcceleratorEntry's command ID.
  9310.         """
  9311.         return _core_.AcceleratorEntry_GetCommand(*args, **kwargs)
  9312.  
  9313.  
  9314.  
  9315. class AcceleratorEntryPtr(AcceleratorEntry):
  9316.     
  9317.     def __init__(self, this):
  9318.         self.this = this
  9319.         if not hasattr(self, 'thisown'):
  9320.             self.thisown = 0
  9321.         
  9322.         self.__class__ = AcceleratorEntry
  9323.  
  9324.  
  9325. _core_.AcceleratorEntry_swigregister(AcceleratorEntryPtr)
  9326.  
  9327. class AcceleratorTable(Object):
  9328.     '''
  9329.     An accelerator table allows the application to specify a table of
  9330.     keyboard shortcuts for menus or other commands. On Windows, menu or
  9331.     button commands are supported; on GTK, only menu commands are
  9332.     supported.
  9333.     '''
  9334.     
  9335.     def __repr__(self):
  9336.         return '<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  9337.  
  9338.     
  9339.     def __init__(self, *args, **kwargs):
  9340.         '''
  9341.         __init__(entries) -> AcceleratorTable
  9342.  
  9343.         Construct an AcceleratorTable from a list of `wx.AcceleratorEntry`
  9344.         items or or of 3-tuples (flags, keyCode, cmdID)
  9345.  
  9346.         :see: `wx.AcceleratorEntry`
  9347.         '''
  9348.         newobj = _core_.new_AcceleratorTable(*args, **kwargs)
  9349.         self.this = newobj.this
  9350.         self.thisown = 1
  9351.         del newobj.thisown
  9352.  
  9353.     
  9354.     def __del__(self, destroy = _core_.delete_AcceleratorTable):
  9355.         '''__del__(self)'''
  9356.         
  9357.         try:
  9358.             if self.thisown:
  9359.                 destroy(self)
  9360.         except:
  9361.             pass
  9362.  
  9363.  
  9364.     
  9365.     def Ok(*args, **kwargs):
  9366.         '''Ok(self) -> bool'''
  9367.         return _core_.AcceleratorTable_Ok(*args, **kwargs)
  9368.  
  9369.  
  9370.  
  9371. class AcceleratorTablePtr(AcceleratorTable):
  9372.     
  9373.     def __init__(self, this):
  9374.         self.this = this
  9375.         if not hasattr(self, 'thisown'):
  9376.             self.thisown = 0
  9377.         
  9378.         self.__class__ = AcceleratorTable
  9379.  
  9380.  
  9381. _core_.AcceleratorTable_swigregister(AcceleratorTablePtr)
  9382.  
  9383. def GetAccelFromString(*args, **kwargs):
  9384.     '''GetAccelFromString(String label) -> AcceleratorEntry'''
  9385.     return _core_.GetAccelFromString(*args, **kwargs)
  9386.  
  9387.  
  9388. class VisualAttributes(object):
  9389.     '''struct containing all the visual attributes of a control'''
  9390.     
  9391.     def __repr__(self):
  9392.         return '<%s.%s; proxy of C++ wxVisualAttributes instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  9393.  
  9394.     
  9395.     def __init__(self, *args, **kwargs):
  9396.         '''
  9397.         __init__(self) -> VisualAttributes
  9398.  
  9399.         struct containing all the visual attributes of a control
  9400.         '''
  9401.         newobj = _core_.new_VisualAttributes(*args, **kwargs)
  9402.         self.this = newobj.this
  9403.         self.thisown = 1
  9404.         del newobj.thisown
  9405.  
  9406.     
  9407.     def __del__(self, destroy = _core_.delete_VisualAttributes):
  9408.         '''__del__(self)'''
  9409.         
  9410.         try:
  9411.             if self.thisown:
  9412.                 destroy(self)
  9413.         except:
  9414.             pass
  9415.  
  9416.  
  9417.     font = property(_core_.VisualAttributes_font_get, _core_.VisualAttributes_font_set)
  9418.     colFg = property(_core_.VisualAttributes_colFg_get, _core_.VisualAttributes_colFg_set)
  9419.     colBg = property(_core_.VisualAttributes_colBg_get, _core_.VisualAttributes_colBg_set)
  9420.  
  9421.  
  9422. class VisualAttributesPtr(VisualAttributes):
  9423.     
  9424.     def __init__(self, this):
  9425.         self.this = this
  9426.         if not hasattr(self, 'thisown'):
  9427.             self.thisown = 0
  9428.         
  9429.         self.__class__ = VisualAttributes
  9430.  
  9431.  
  9432. _core_.VisualAttributes_swigregister(VisualAttributesPtr)
  9433. NullAcceleratorTable = cvar.NullAcceleratorTable
  9434. PanelNameStr = cvar.PanelNameStr
  9435. WINDOW_VARIANT_NORMAL = _core_.WINDOW_VARIANT_NORMAL
  9436. WINDOW_VARIANT_SMALL = _core_.WINDOW_VARIANT_SMALL
  9437. WINDOW_VARIANT_MINI = _core_.WINDOW_VARIANT_MINI
  9438. WINDOW_VARIANT_LARGE = _core_.WINDOW_VARIANT_LARGE
  9439. WINDOW_VARIANT_MAX = _core_.WINDOW_VARIANT_MAX
  9440.  
  9441. class Window(EvtHandler):
  9442.     """
  9443.     wx.Window is the base class for all windows and represents any visible
  9444.     object on the screen. All controls, top level windows and so on are
  9445.     wx.Windows. Sizers and device contexts are not however, as they don't
  9446.     appear on screen themselves.
  9447.  
  9448.     """
  9449.     
  9450.     def __repr__(self):
  9451.         return '<%s.%s; proxy of C++ wxWindow instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  9452.  
  9453.     
  9454.     def __init__(self, *args, **kwargs):
  9455.         '''
  9456.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  9457.             Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window
  9458.  
  9459.         Construct and show a generic Window.
  9460.         '''
  9461.         newobj = _core_.new_Window(*args, **kwargs)
  9462.         self.this = newobj.this
  9463.         self.thisown = 1
  9464.         del newobj.thisown
  9465.         self._setOORInfo(self)
  9466.  
  9467.     
  9468.     def Create(*args, **kwargs):
  9469.         '''
  9470.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  9471.             Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
  9472.  
  9473.         Create the GUI part of the Window for 2-phase creation mode.
  9474.         '''
  9475.         return _core_.Window_Create(*args, **kwargs)
  9476.  
  9477.     
  9478.     def Close(*args, **kwargs):
  9479.         """
  9480.         Close(self, bool force=False) -> bool
  9481.  
  9482.         This function simply generates a EVT_CLOSE event whose handler usually
  9483.         tries to close the window. It doesn't close the window itself,
  9484.         however.  If force is False (the default) then the window's close
  9485.         handler will be allowed to veto the destruction of the window.
  9486.         """
  9487.         return _core_.Window_Close(*args, **kwargs)
  9488.  
  9489.     
  9490.     def Destroy(*args, **kwargs):
  9491.         """
  9492.         Destroy(self) -> bool
  9493.  
  9494.         Destroys the window safely.  Frames and dialogs are not destroyed
  9495.         immediately when this function is called -- they are added to a list
  9496.         of windows to be deleted on idle time, when all the window's events
  9497.         have been processed. This prevents problems with events being sent to
  9498.         non-existent windows.
  9499.  
  9500.         Returns True if the window has either been successfully deleted, or it
  9501.         has been added to the list of windows pending real deletion.
  9502.         """
  9503.         return _core_.Window_Destroy(*args, **kwargs)
  9504.  
  9505.     
  9506.     def DestroyChildren(*args, **kwargs):
  9507.         '''
  9508.         DestroyChildren(self) -> bool
  9509.  
  9510.         Destroys all children of a window. Called automatically by the
  9511.         destructor.
  9512.         '''
  9513.         return _core_.Window_DestroyChildren(*args, **kwargs)
  9514.  
  9515.     
  9516.     def IsBeingDeleted(*args, **kwargs):
  9517.         '''
  9518.         IsBeingDeleted(self) -> bool
  9519.  
  9520.         Is the window in the process of being deleted?
  9521.         '''
  9522.         return _core_.Window_IsBeingDeleted(*args, **kwargs)
  9523.  
  9524.     
  9525.     def SetTitle(*args, **kwargs):
  9526.         """
  9527.         SetTitle(self, String title)
  9528.  
  9529.         Sets the window's title. Applicable only to frames and dialogs.
  9530.         """
  9531.         return _core_.Window_SetTitle(*args, **kwargs)
  9532.  
  9533.     
  9534.     def GetTitle(*args, **kwargs):
  9535.         """
  9536.         GetTitle(self) -> String
  9537.  
  9538.         Gets the window's title. Applicable only to frames and dialogs.
  9539.         """
  9540.         return _core_.Window_GetTitle(*args, **kwargs)
  9541.  
  9542.     
  9543.     def SetLabel(*args, **kwargs):
  9544.         '''
  9545.         SetLabel(self, String label)
  9546.  
  9547.         Set the text which the window shows in its label if applicable.
  9548.         '''
  9549.         return _core_.Window_SetLabel(*args, **kwargs)
  9550.  
  9551.     
  9552.     def GetLabel(*args, **kwargs):
  9553.         '''
  9554.         GetLabel(self) -> String
  9555.  
  9556.         Generic way of getting a label from any window, for identification
  9557.         purposes.  The interpretation of this function differs from class to
  9558.         class. For frames and dialogs, the value returned is the title. For
  9559.         buttons or static text controls, it is the button text. This function
  9560.         can be useful for meta-programs such as testing tools or special-needs
  9561.         access programs)which need to identify windows by name.
  9562.         '''
  9563.         return _core_.Window_GetLabel(*args, **kwargs)
  9564.  
  9565.     
  9566.     def SetName(*args, **kwargs):
  9567.         """
  9568.         SetName(self, String name)
  9569.  
  9570.         Sets the window's name.  The window name is used for ressource setting
  9571.         in X, it is not the same as the window title/label
  9572.         """
  9573.         return _core_.Window_SetName(*args, **kwargs)
  9574.  
  9575.     
  9576.     def GetName(*args, **kwargs):
  9577.         '''
  9578.         GetName(self) -> String
  9579.  
  9580.         Returns the windows name.  This name is not guaranteed to be unique;
  9581.         it is up to the programmer to supply an appropriate name in the window
  9582.         constructor or via wx.Window.SetName.
  9583.         '''
  9584.         return _core_.Window_GetName(*args, **kwargs)
  9585.  
  9586.     
  9587.     def SetWindowVariant(*args, **kwargs):
  9588.         '''
  9589.         SetWindowVariant(self, int variant)
  9590.  
  9591.         Sets the variant of the window/font size to use for this window, if
  9592.         the platform supports variants, for example, wxMac.
  9593.         '''
  9594.         return _core_.Window_SetWindowVariant(*args, **kwargs)
  9595.  
  9596.     
  9597.     def GetWindowVariant(*args, **kwargs):
  9598.         '''GetWindowVariant(self) -> int'''
  9599.         return _core_.Window_GetWindowVariant(*args, **kwargs)
  9600.  
  9601.     
  9602.     def SetId(*args, **kwargs):
  9603.         '''
  9604.         SetId(self, int winid)
  9605.  
  9606.         Sets the identifier of the window.  Each window has an integer
  9607.         identifier. If the application has not provided one, an identifier
  9608.         will be generated. Normally, the identifier should be provided on
  9609.         creation and should not be modified subsequently.
  9610.         '''
  9611.         return _core_.Window_SetId(*args, **kwargs)
  9612.  
  9613.     
  9614.     def GetId(*args, **kwargs):
  9615.         '''
  9616.         GetId(self) -> int
  9617.  
  9618.         Returns the identifier of the window.  Each window has an integer
  9619.         identifier. If the application has not provided one (or the default Id
  9620.         -1 is used) then an unique identifier with a negative value will be
  9621.         generated.
  9622.         '''
  9623.         return _core_.Window_GetId(*args, **kwargs)
  9624.  
  9625.     
  9626.     def NewControlId(*args, **kwargs):
  9627.         '''
  9628.         NewControlId() -> int
  9629.  
  9630.         Generate a control id for the controls which were not given one.
  9631.         '''
  9632.         return _core_.Window_NewControlId(*args, **kwargs)
  9633.  
  9634.     NewControlId = staticmethod(NewControlId)
  9635.     
  9636.     def NextControlId(*args, **kwargs):
  9637.         '''
  9638.         NextControlId(int winid) -> int
  9639.  
  9640.         Get the id of the control following the one with the given
  9641.         autogenerated) id
  9642.         '''
  9643.         return _core_.Window_NextControlId(*args, **kwargs)
  9644.  
  9645.     NextControlId = staticmethod(NextControlId)
  9646.     
  9647.     def PrevControlId(*args, **kwargs):
  9648.         '''
  9649.         PrevControlId(int winid) -> int
  9650.  
  9651.         Get the id of the control preceding the one with the given
  9652.         autogenerated) id
  9653.         '''
  9654.         return _core_.Window_PrevControlId(*args, **kwargs)
  9655.  
  9656.     PrevControlId = staticmethod(PrevControlId)
  9657.     
  9658.     def SetSize(*args, **kwargs):
  9659.         '''
  9660.         SetSize(self, Size size)
  9661.  
  9662.         Sets the size of the window in pixels.
  9663.         '''
  9664.         return _core_.Window_SetSize(*args, **kwargs)
  9665.  
  9666.     
  9667.     def SetDimensions(*args, **kwargs):
  9668.         '''
  9669.         SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
  9670.  
  9671.         Sets the position and size of the window in pixels.  The sizeFlags
  9672.         parameter indicates the interpretation of the other params if they are
  9673.         equal to -1.
  9674.  
  9675.             ========================  ======================================
  9676.             wx.SIZE_AUTO              A -1 indicates that a class-specific
  9677.                                       default should be used.
  9678.             wx.SIZE_USE_EXISTING      Axisting dimensions should be used if
  9679.                                       -1 values are supplied.
  9680.             wxSIZE_ALLOW_MINUS_ONE    Allow dimensions of -1 and less to be
  9681.                                       interpreted as real dimensions, not
  9682.                                       default values.
  9683.             ========================  ======================================
  9684.  
  9685.         '''
  9686.         return _core_.Window_SetDimensions(*args, **kwargs)
  9687.  
  9688.     
  9689.     def SetRect(*args, **kwargs):
  9690.         '''
  9691.         SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO)
  9692.  
  9693.         Sets the position and size of the window in pixels using a wx.Rect.
  9694.         '''
  9695.         return _core_.Window_SetRect(*args, **kwargs)
  9696.  
  9697.     
  9698.     def SetSizeWH(*args, **kwargs):
  9699.         '''
  9700.         SetSizeWH(self, int width, int height)
  9701.  
  9702.         Sets the size of the window in pixels.
  9703.         '''
  9704.         return _core_.Window_SetSizeWH(*args, **kwargs)
  9705.  
  9706.     
  9707.     def Move(*args, **kwargs):
  9708.         '''
  9709.         Move(self, Point pt, int flags=SIZE_USE_EXISTING)
  9710.  
  9711.         Moves the window to the given position.
  9712.         '''
  9713.         return _core_.Window_Move(*args, **kwargs)
  9714.  
  9715.     SetPosition = Move
  9716.     
  9717.     def MoveXY(*args, **kwargs):
  9718.         '''
  9719.         MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING)
  9720.  
  9721.         Moves the window to the given position.
  9722.         '''
  9723.         return _core_.Window_MoveXY(*args, **kwargs)
  9724.  
  9725.     
  9726.     def SetBestFittingSize(*args, **kwargs):
  9727.         """
  9728.         SetBestFittingSize(self, Size size=DefaultSize)
  9729.  
  9730.         A 'Smart' SetSize that will fill in default size components with the
  9731.         window's *best size* values.  Also set's the minsize for use with sizers.
  9732.         """
  9733.         return _core_.Window_SetBestFittingSize(*args, **kwargs)
  9734.  
  9735.     
  9736.     def Raise(*args, **kwargs):
  9737.         '''
  9738.         Raise(self)
  9739.  
  9740.         Raises the window to the top of the window hierarchy.  In current
  9741.         version of wxWidgets this works both for manage and child windows.
  9742.         '''
  9743.         return _core_.Window_Raise(*args, **kwargs)
  9744.  
  9745.     
  9746.     def Lower(*args, **kwargs):
  9747.         '''
  9748.         Lower(self)
  9749.  
  9750.         Lowers the window to the bottom of the window hierarchy.  In current
  9751.         version of wxWidgets this works both for manage and child windows.
  9752.         '''
  9753.         return _core_.Window_Lower(*args, **kwargs)
  9754.  
  9755.     
  9756.     def SetClientSize(*args, **kwargs):
  9757.         '''
  9758.         SetClientSize(self, Size size)
  9759.  
  9760.         This sets the size of the window client area in pixels. Using this
  9761.         function to size a window tends to be more device-independent than
  9762.         wx.Window.SetSize, since the application need not worry about what
  9763.         dimensions the border or title bar have when trying to fit the window
  9764.         around panel items, for example.
  9765.         '''
  9766.         return _core_.Window_SetClientSize(*args, **kwargs)
  9767.  
  9768.     
  9769.     def SetClientSizeWH(*args, **kwargs):
  9770.         '''
  9771.         SetClientSizeWH(self, int width, int height)
  9772.  
  9773.         This sets the size of the window client area in pixels. Using this
  9774.         function to size a window tends to be more device-independent than
  9775.         wx.Window.SetSize, since the application need not worry about what
  9776.         dimensions the border or title bar have when trying to fit the window
  9777.         around panel items, for example.
  9778.         '''
  9779.         return _core_.Window_SetClientSizeWH(*args, **kwargs)
  9780.  
  9781.     
  9782.     def SetClientRect(*args, **kwargs):
  9783.         '''
  9784.         SetClientRect(self, Rect rect)
  9785.  
  9786.         This sets the size of the window client area in pixels. Using this
  9787.         function to size a window tends to be more device-independent than
  9788.         wx.Window.SetSize, since the application need not worry about what
  9789.         dimensions the border or title bar have when trying to fit the window
  9790.         around panel items, for example.
  9791.         '''
  9792.         return _core_.Window_SetClientRect(*args, **kwargs)
  9793.  
  9794.     
  9795.     def GetPosition(*args, **kwargs):
  9796.         """
  9797.         GetPosition(self) -> Point
  9798.  
  9799.         Get the window's position.
  9800.         """
  9801.         return _core_.Window_GetPosition(*args, **kwargs)
  9802.  
  9803.     
  9804.     def GetPositionTuple(*args, **kwargs):
  9805.         """
  9806.         GetPositionTuple() -> (x,y)
  9807.  
  9808.         Get the window's position.
  9809.         """
  9810.         return _core_.Window_GetPositionTuple(*args, **kwargs)
  9811.  
  9812.     
  9813.     def GetSize(*args, **kwargs):
  9814.         '''
  9815.         GetSize(self) -> Size
  9816.  
  9817.         Get the window size.
  9818.         '''
  9819.         return _core_.Window_GetSize(*args, **kwargs)
  9820.  
  9821.     
  9822.     def GetSizeTuple(*args, **kwargs):
  9823.         '''
  9824.         GetSizeTuple() -> (width, height)
  9825.  
  9826.         Get the window size.
  9827.         '''
  9828.         return _core_.Window_GetSizeTuple(*args, **kwargs)
  9829.  
  9830.     
  9831.     def GetRect(*args, **kwargs):
  9832.         '''
  9833.         GetRect(self) -> Rect
  9834.  
  9835.         Returns the size and position of the window as a wx.Rect object.
  9836.         '''
  9837.         return _core_.Window_GetRect(*args, **kwargs)
  9838.  
  9839.     
  9840.     def GetClientSize(*args, **kwargs):
  9841.         """
  9842.         GetClientSize(self) -> Size
  9843.  
  9844.         This gets the size of the window's 'client area' in pixels. The client
  9845.         area is the area which may be drawn on by the programmer, excluding
  9846.         title bar, border, scrollbars, etc.
  9847.         """
  9848.         return _core_.Window_GetClientSize(*args, **kwargs)
  9849.  
  9850.     
  9851.     def GetClientSizeTuple(*args, **kwargs):
  9852.         """
  9853.         GetClientSizeTuple() -> (width, height)
  9854.  
  9855.         This gets the size of the window's 'client area' in pixels. The client
  9856.         area is the area which may be drawn on by the programmer, excluding
  9857.         title bar, border, scrollbars, etc.
  9858.         """
  9859.         return _core_.Window_GetClientSizeTuple(*args, **kwargs)
  9860.  
  9861.     
  9862.     def GetClientAreaOrigin(*args, **kwargs):
  9863.         """
  9864.         GetClientAreaOrigin(self) -> Point
  9865.  
  9866.         Get the origin of the client area of the window relative to the
  9867.         window's top left corner (the client area may be shifted because of
  9868.         the borders, scrollbars, other decorations...)
  9869.         """
  9870.         return _core_.Window_GetClientAreaOrigin(*args, **kwargs)
  9871.  
  9872.     
  9873.     def GetClientRect(*args, **kwargs):
  9874.         '''
  9875.         GetClientRect(self) -> Rect
  9876.  
  9877.         Get the client area position and size as a `wx.Rect` object.
  9878.         '''
  9879.         return _core_.Window_GetClientRect(*args, **kwargs)
  9880.  
  9881.     
  9882.     def GetBestSize(*args, **kwargs):
  9883.         '''
  9884.         GetBestSize(self) -> Size
  9885.  
  9886.         This function returns the best acceptable minimal size for the
  9887.         window, if applicable. For example, for a static text control, it will
  9888.         be the minimal size such that the control label is not truncated. For
  9889.         windows containing subwindows (suzh aswx.Panel), the size returned by
  9890.         this function will be the same as the size the window would have had
  9891.         after calling Fit.
  9892.         '''
  9893.         return _core_.Window_GetBestSize(*args, **kwargs)
  9894.  
  9895.     
  9896.     def GetBestSizeTuple(*args, **kwargs):
  9897.         '''
  9898.         GetBestSizeTuple() -> (width, height)
  9899.  
  9900.         This function returns the best acceptable minimal size for the
  9901.         window, if applicable. For example, for a static text control, it will
  9902.         be the minimal size such that the control label is not truncated. For
  9903.         windows containing subwindows (suzh aswx.Panel), the size returned by
  9904.         this function will be the same as the size the window would have had
  9905.         after calling Fit.
  9906.         '''
  9907.         return _core_.Window_GetBestSizeTuple(*args, **kwargs)
  9908.  
  9909.     
  9910.     def InvalidateBestSize(*args, **kwargs):
  9911.         '''
  9912.         InvalidateBestSize(self)
  9913.  
  9914.         Reset the cached best size value so it will be recalculated the next
  9915.         time it is needed.
  9916.         '''
  9917.         return _core_.Window_InvalidateBestSize(*args, **kwargs)
  9918.  
  9919.     
  9920.     def CacheBestSize(*args, **kwargs):
  9921.         """
  9922.         CacheBestSize(self, Size size)
  9923.  
  9924.         Cache the best size so it doesn't need to be calculated again, (at least until
  9925.         some properties of the window change.)
  9926.         """
  9927.         return _core_.Window_CacheBestSize(*args, **kwargs)
  9928.  
  9929.     
  9930.     def GetBestFittingSize(*args, **kwargs):
  9931.         """
  9932.         GetBestFittingSize(self) -> Size
  9933.  
  9934.         This function will merge the window's best size into the window's
  9935.         minimum size, giving priority to the min size components, and returns
  9936.         the results.
  9937.  
  9938.         """
  9939.         return _core_.Window_GetBestFittingSize(*args, **kwargs)
  9940.  
  9941.     
  9942.     def GetAdjustedBestSize(*args, **kwargs):
  9943.         '''
  9944.         GetAdjustedBestSize(self) -> Size
  9945.  
  9946.         This method is similar to GetBestSize, except in one
  9947.         thing. GetBestSize should return the minimum untruncated size of the
  9948.         window, while this method will return the largest of BestSize and any
  9949.         user specified minimum size. ie. it is the minimum size the window
  9950.         should currently be drawn at, not the minimal size it can possibly
  9951.         tolerate.
  9952.         '''
  9953.         return _core_.Window_GetAdjustedBestSize(*args, **kwargs)
  9954.  
  9955.     
  9956.     def Center(*args, **kwargs):
  9957.         '''
  9958.         Center(self, int direction=BOTH)
  9959.  
  9960.         Centers the window.  The parameter specifies the direction for
  9961.         cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
  9962.         also include wx.CENTER_ON_SCREEN flag if you want to center the window
  9963.         on the entire screen and not on its parent window.  If it is a
  9964.         top-level window and has no parent then it will always be centered
  9965.         relative to the screen.
  9966.         '''
  9967.         return _core_.Window_Center(*args, **kwargs)
  9968.  
  9969.     Centre = Center
  9970.     
  9971.     def CenterOnScreen(*args, **kwargs):
  9972.         '''
  9973.         CenterOnScreen(self, int dir=BOTH)
  9974.  
  9975.         Center on screen (only works for top level windows)
  9976.         '''
  9977.         return _core_.Window_CenterOnScreen(*args, **kwargs)
  9978.  
  9979.     CenterOnScreen = wx._deprecated(CenterOnScreen)
  9980.     CentreOnScreen = CenterOnScreen
  9981.     
  9982.     def CenterOnParent(*args, **kwargs):
  9983.         '''
  9984.         CenterOnParent(self, int dir=BOTH)
  9985.  
  9986.         Center with respect to the the parent window
  9987.         '''
  9988.         return _core_.Window_CenterOnParent(*args, **kwargs)
  9989.  
  9990.     CentreOnParent = CenterOnParent
  9991.     
  9992.     def Fit(*args, **kwargs):
  9993.         """
  9994.         Fit(self)
  9995.  
  9996.         Sizes the window so that it fits around its subwindows. This function
  9997.         won't do anything if there are no subwindows and will only really work
  9998.         correctly if sizers are used for the subwindows layout. Also, if the
  9999.         window has exactly one subwindow it is better (faster and the result
  10000.         is more precise as Fit adds some margin to account for fuzziness of
  10001.         its calculations) to call window.SetClientSize(child.GetSize())
  10002.         instead of calling Fit.
  10003.         """
  10004.         return _core_.Window_Fit(*args, **kwargs)
  10005.  
  10006.     
  10007.     def FitInside(*args, **kwargs):
  10008.         """
  10009.         FitInside(self)
  10010.  
  10011.         Similar to Fit, but sizes the interior (virtual) size of a
  10012.         window. Mainly useful with scrolled windows to reset scrollbars after
  10013.         sizing changes that do not trigger a size event, and/or scrolled
  10014.         windows without an interior sizer. This function similarly won't do
  10015.         anything if there are no subwindows.
  10016.         """
  10017.         return _core_.Window_FitInside(*args, **kwargs)
  10018.  
  10019.     
  10020.     def SetSizeHints(*args, **kwargs):
  10021.         '''
  10022.         SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, 
  10023.             int incH=-1)
  10024.  
  10025.         Allows specification of minimum and maximum window sizes, and window
  10026.         size increments. If a pair of values is not set (or set to -1), the
  10027.         default values will be used.  If this function is called, the user
  10028.         will not be able to size the window outside the given bounds (if it is
  10029.         a top-level window.)  Sizers will also inspect the minimum window size
  10030.         and will use that value if set when calculating layout.
  10031.  
  10032.         The resizing increments are only significant under Motif or Xt.
  10033.         '''
  10034.         return _core_.Window_SetSizeHints(*args, **kwargs)
  10035.  
  10036.     
  10037.     def SetSizeHintsSz(*args, **kwargs):
  10038.         '''
  10039.         SetSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
  10040.  
  10041.         Allows specification of minimum and maximum window sizes, and window
  10042.         size increments. If a pair of values is not set (or set to -1), the
  10043.         default values will be used.  If this function is called, the user
  10044.         will not be able to size the window outside the given bounds (if it is
  10045.         a top-level window.)  Sizers will also inspect the minimum window size
  10046.         and will use that value if set when calculating layout.
  10047.  
  10048.         The resizing increments are only significant under Motif or Xt.
  10049.         '''
  10050.         return _core_.Window_SetSizeHintsSz(*args, **kwargs)
  10051.  
  10052.     
  10053.     def SetVirtualSizeHints(*args, **kwargs):
  10054.         '''
  10055.         SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1)
  10056.  
  10057.         Allows specification of minimum and maximum virtual window sizes. If a
  10058.         pair of values is not set (or set to -1), the default values will be
  10059.         used.  If this function is called, the user will not be able to size
  10060.         the virtual area of the window outside the given bounds.
  10061.         '''
  10062.         return _core_.Window_SetVirtualSizeHints(*args, **kwargs)
  10063.  
  10064.     
  10065.     def SetVirtualSizeHintsSz(*args, **kwargs):
  10066.         '''
  10067.         SetVirtualSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize)
  10068.  
  10069.         Allows specification of minimum and maximum virtual window sizes. If a
  10070.         pair of values is not set (or set to -1), the default values will be
  10071.         used.  If this function is called, the user will not be able to size
  10072.         the virtual area of the window outside the given bounds.
  10073.         '''
  10074.         return _core_.Window_SetVirtualSizeHintsSz(*args, **kwargs)
  10075.  
  10076.     
  10077.     def GetMaxSize(*args, **kwargs):
  10078.         '''GetMaxSize(self) -> Size'''
  10079.         return _core_.Window_GetMaxSize(*args, **kwargs)
  10080.  
  10081.     
  10082.     def GetMinSize(*args, **kwargs):
  10083.         '''GetMinSize(self) -> Size'''
  10084.         return _core_.Window_GetMinSize(*args, **kwargs)
  10085.  
  10086.     
  10087.     def SetMinSize(*args, **kwargs):
  10088.         '''
  10089.         SetMinSize(self, Size minSize)
  10090.  
  10091.         A more convenient method than `SetSizeHints` for setting just the
  10092.         min size.
  10093.         '''
  10094.         return _core_.Window_SetMinSize(*args, **kwargs)
  10095.  
  10096.     
  10097.     def SetMaxSize(*args, **kwargs):
  10098.         '''
  10099.         SetMaxSize(self, Size maxSize)
  10100.  
  10101.         A more convenient method than `SetSizeHints` for setting just the
  10102.         max size.
  10103.         '''
  10104.         return _core_.Window_SetMaxSize(*args, **kwargs)
  10105.  
  10106.     
  10107.     def GetMinWidth(*args, **kwargs):
  10108.         '''GetMinWidth(self) -> int'''
  10109.         return _core_.Window_GetMinWidth(*args, **kwargs)
  10110.  
  10111.     
  10112.     def GetMinHeight(*args, **kwargs):
  10113.         '''GetMinHeight(self) -> int'''
  10114.         return _core_.Window_GetMinHeight(*args, **kwargs)
  10115.  
  10116.     
  10117.     def GetMaxWidth(*args, **kwargs):
  10118.         '''GetMaxWidth(self) -> int'''
  10119.         return _core_.Window_GetMaxWidth(*args, **kwargs)
  10120.  
  10121.     
  10122.     def GetMaxHeight(*args, **kwargs):
  10123.         '''GetMaxHeight(self) -> int'''
  10124.         return _core_.Window_GetMaxHeight(*args, **kwargs)
  10125.  
  10126.     
  10127.     def SetVirtualSize(*args, **kwargs):
  10128.         '''
  10129.         SetVirtualSize(self, Size size)
  10130.  
  10131.         Set the the virtual size of a window in pixels.  For most windows this
  10132.         is just the client area of the window, but for some like scrolled
  10133.         windows it is more or less independent of the screen window size.
  10134.         '''
  10135.         return _core_.Window_SetVirtualSize(*args, **kwargs)
  10136.  
  10137.     
  10138.     def SetVirtualSizeWH(*args, **kwargs):
  10139.         '''
  10140.         SetVirtualSizeWH(self, int w, int h)
  10141.  
  10142.         Set the the virtual size of a window in pixels.  For most windows this
  10143.         is just the client area of the window, but for some like scrolled
  10144.         windows it is more or less independent of the screen window size.
  10145.         '''
  10146.         return _core_.Window_SetVirtualSizeWH(*args, **kwargs)
  10147.  
  10148.     
  10149.     def GetVirtualSize(*args, **kwargs):
  10150.         '''
  10151.         GetVirtualSize(self) -> Size
  10152.  
  10153.         Get the the virtual size of the window in pixels.  For most windows
  10154.         this is just the client area of the window, but for some like scrolled
  10155.         windows it is more or less independent of the screen window size.
  10156.         '''
  10157.         return _core_.Window_GetVirtualSize(*args, **kwargs)
  10158.  
  10159.     
  10160.     def GetVirtualSizeTuple(*args, **kwargs):
  10161.         '''
  10162.         GetVirtualSizeTuple() -> (width, height)
  10163.  
  10164.         Get the the virtual size of the window in pixels.  For most windows
  10165.         this is just the client area of the window, but for some like scrolled
  10166.         windows it is more or less independent of the screen window size.
  10167.         '''
  10168.         return _core_.Window_GetVirtualSizeTuple(*args, **kwargs)
  10169.  
  10170.     
  10171.     def GetBestVirtualSize(*args, **kwargs):
  10172.         '''
  10173.         GetBestVirtualSize(self) -> Size
  10174.  
  10175.         Return the largest of ClientSize and BestSize (as determined by a
  10176.         sizer, interior children, or other means)
  10177.         '''
  10178.         return _core_.Window_GetBestVirtualSize(*args, **kwargs)
  10179.  
  10180.     
  10181.     def Show(*args, **kwargs):
  10182.         '''
  10183.         Show(self, bool show=True) -> bool
  10184.  
  10185.         Shows or hides the window. You may need to call Raise for a top level
  10186.         window if you want to bring it to top, although this is not needed if
  10187.         Show is called immediately after the frame creation.  Returns True if
  10188.         the window has been shown or hidden or False if nothing was done
  10189.         because it already was in the requested state.
  10190.         '''
  10191.         return _core_.Window_Show(*args, **kwargs)
  10192.  
  10193.     
  10194.     def Hide(*args, **kwargs):
  10195.         '''
  10196.         Hide(self) -> bool
  10197.  
  10198.         Equivalent to calling Show(False).
  10199.         '''
  10200.         return _core_.Window_Hide(*args, **kwargs)
  10201.  
  10202.     
  10203.     def Enable(*args, **kwargs):
  10204.         '''
  10205.         Enable(self, bool enable=True) -> bool
  10206.  
  10207.         Enable or disable the window for user input. Note that when a parent
  10208.         window is disabled, all of its children are disabled as well and they
  10209.         are reenabled again when the parent is.  Returns true if the window
  10210.         has been enabled or disabled, false if nothing was done, i.e. if the
  10211.         window had already been in the specified state.
  10212.         '''
  10213.         return _core_.Window_Enable(*args, **kwargs)
  10214.  
  10215.     
  10216.     def Disable(*args, **kwargs):
  10217.         '''
  10218.         Disable(self) -> bool
  10219.  
  10220.         Disables the window, same as Enable(false).
  10221.         '''
  10222.         return _core_.Window_Disable(*args, **kwargs)
  10223.  
  10224.     
  10225.     def IsShown(*args, **kwargs):
  10226.         '''
  10227.         IsShown(self) -> bool
  10228.  
  10229.         Returns true if the window is shown, false if it has been hidden.
  10230.         '''
  10231.         return _core_.Window_IsShown(*args, **kwargs)
  10232.  
  10233.     
  10234.     def IsEnabled(*args, **kwargs):
  10235.         '''
  10236.         IsEnabled(self) -> bool
  10237.  
  10238.         Returns true if the window is enabled for input, false otherwise.
  10239.         '''
  10240.         return _core_.Window_IsEnabled(*args, **kwargs)
  10241.  
  10242.     
  10243.     def SetWindowStyleFlag(*args, **kwargs):
  10244.         '''
  10245.         SetWindowStyleFlag(self, long style)
  10246.  
  10247.         Sets the style of the window. Please note that some styles cannot be
  10248.         changed after the window creation and that Refresh() might need to be
  10249.         called after changing the others for the change to take place
  10250.         immediately.
  10251.         '''
  10252.         return _core_.Window_SetWindowStyleFlag(*args, **kwargs)
  10253.  
  10254.     
  10255.     def GetWindowStyleFlag(*args, **kwargs):
  10256.         '''
  10257.         GetWindowStyleFlag(self) -> long
  10258.  
  10259.         Gets the window style that was passed to the constructor or Create
  10260.         method.
  10261.         '''
  10262.         return _core_.Window_GetWindowStyleFlag(*args, **kwargs)
  10263.  
  10264.     SetWindowStyle = SetWindowStyleFlag
  10265.     GetWindowStyle = GetWindowStyleFlag
  10266.     
  10267.     def HasFlag(*args, **kwargs):
  10268.         '''
  10269.         HasFlag(self, int flag) -> bool
  10270.  
  10271.         Test if the given style is set for this window.
  10272.         '''
  10273.         return _core_.Window_HasFlag(*args, **kwargs)
  10274.  
  10275.     
  10276.     def IsRetained(*args, **kwargs):
  10277.         '''
  10278.         IsRetained(self) -> bool
  10279.  
  10280.         Returns true if the window is retained, false otherwise.  Retained
  10281.         windows are only available on X platforms.
  10282.         '''
  10283.         return _core_.Window_IsRetained(*args, **kwargs)
  10284.  
  10285.     
  10286.     def SetExtraStyle(*args, **kwargs):
  10287.         """
  10288.         SetExtraStyle(self, long exStyle)
  10289.  
  10290.         Sets the extra style bits for the window.  Extra styles are the less
  10291.         often used style bits which can't be set with the constructor or with
  10292.         SetWindowStyleFlag()
  10293.         """
  10294.         return _core_.Window_SetExtraStyle(*args, **kwargs)
  10295.  
  10296.     
  10297.     def GetExtraStyle(*args, **kwargs):
  10298.         '''
  10299.         GetExtraStyle(self) -> long
  10300.  
  10301.         Returns the extra style bits for the window.
  10302.         '''
  10303.         return _core_.Window_GetExtraStyle(*args, **kwargs)
  10304.  
  10305.     
  10306.     def MakeModal(*args, **kwargs):
  10307.         '''
  10308.         MakeModal(self, bool modal=True)
  10309.  
  10310.         Disables all other windows in the application so that the user can
  10311.         only interact with this window.  Passing False will reverse this
  10312.         effect.
  10313.         '''
  10314.         return _core_.Window_MakeModal(*args, **kwargs)
  10315.  
  10316.     
  10317.     def SetThemeEnabled(*args, **kwargs):
  10318.         '''
  10319.         SetThemeEnabled(self, bool enableTheme)
  10320.  
  10321.         This function tells a window if it should use the system\'s "theme"
  10322.          code to draw the windows\' background instead if its own background
  10323.          drawing code. This will only have an effect on platforms that support
  10324.          the notion of themes in user defined windows. One such platform is
  10325.          GTK+ where windows can have (very colourful) backgrounds defined by a
  10326.          user\'s selected theme.
  10327.  
  10328.         Dialogs, notebook pages and the status bar have this flag set to true
  10329.         by default so that the default look and feel is simulated best.
  10330.         '''
  10331.         return _core_.Window_SetThemeEnabled(*args, **kwargs)
  10332.  
  10333.     
  10334.     def GetThemeEnabled(*args, **kwargs):
  10335.         '''
  10336.         GetThemeEnabled(self) -> bool
  10337.  
  10338.         Return the themeEnabled flag.
  10339.         '''
  10340.         return _core_.Window_GetThemeEnabled(*args, **kwargs)
  10341.  
  10342.     
  10343.     def SetFocus(*args, **kwargs):
  10344.         """
  10345.         SetFocus(self)
  10346.  
  10347.         Set's the focus to this window, allowing it to receive keyboard input.
  10348.         """
  10349.         return _core_.Window_SetFocus(*args, **kwargs)
  10350.  
  10351.     
  10352.     def SetFocusFromKbd(*args, **kwargs):
  10353.         '''
  10354.         SetFocusFromKbd(self)
  10355.  
  10356.         Set focus to this window as the result of a keyboard action.  Normally
  10357.         only called internally.
  10358.         '''
  10359.         return _core_.Window_SetFocusFromKbd(*args, **kwargs)
  10360.  
  10361.     
  10362.     def FindFocus(*args, **kwargs):
  10363.         '''
  10364.         FindFocus() -> Window
  10365.  
  10366.         Returns the window or control that currently has the keyboard focus,
  10367.         or None.
  10368.         '''
  10369.         return _core_.Window_FindFocus(*args, **kwargs)
  10370.  
  10371.     FindFocus = staticmethod(FindFocus)
  10372.     
  10373.     def AcceptsFocus(*args, **kwargs):
  10374.         '''
  10375.         AcceptsFocus(self) -> bool
  10376.  
  10377.         Can this window have focus?
  10378.         '''
  10379.         return _core_.Window_AcceptsFocus(*args, **kwargs)
  10380.  
  10381.     
  10382.     def AcceptsFocusFromKeyboard(*args, **kwargs):
  10383.         '''
  10384.         AcceptsFocusFromKeyboard(self) -> bool
  10385.  
  10386.         Can this window be given focus by keyboard navigation? if not, the
  10387.         only way to give it focus (provided it accepts it at all) is to click
  10388.         it.
  10389.         '''
  10390.         return _core_.Window_AcceptsFocusFromKeyboard(*args, **kwargs)
  10391.  
  10392.     
  10393.     def GetDefaultItem(*args, **kwargs):
  10394.         '''
  10395.         GetDefaultItem(self) -> Window
  10396.  
  10397.         Get the default child of this parent, i.e. the one which is activated
  10398.         by pressing <Enter> such as the OK button on a wx.Dialog.
  10399.         '''
  10400.         return _core_.Window_GetDefaultItem(*args, **kwargs)
  10401.  
  10402.     
  10403.     def SetDefaultItem(*args, **kwargs):
  10404.         '''
  10405.         SetDefaultItem(self, Window child) -> Window
  10406.  
  10407.         Set this child as default, return the old default.
  10408.         '''
  10409.         return _core_.Window_SetDefaultItem(*args, **kwargs)
  10410.  
  10411.     
  10412.     def SetTmpDefaultItem(*args, **kwargs):
  10413.         '''
  10414.         SetTmpDefaultItem(self, Window win)
  10415.  
  10416.         Set this child as temporary default
  10417.         '''
  10418.         return _core_.Window_SetTmpDefaultItem(*args, **kwargs)
  10419.  
  10420.     
  10421.     def Navigate(*args, **kwargs):
  10422.         '''
  10423.         Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool
  10424.  
  10425.         Does keyboard navigation from this window to another, by sending a
  10426.         `wx.NavigationKeyEvent`.
  10427.         '''
  10428.         return _core_.Window_Navigate(*args, **kwargs)
  10429.  
  10430.     
  10431.     def MoveAfterInTabOrder(*args, **kwargs):
  10432.         '''
  10433.         MoveAfterInTabOrder(self, Window win)
  10434.  
  10435.         Moves this window in the tab navigation order after the specified
  10436.         sibling window.  This means that when the user presses the TAB key on
  10437.         that other window, the focus switches to this window.
  10438.  
  10439.         The default tab order is the same as creation order.  This function
  10440.         and `MoveBeforeInTabOrder` allow to change it after creating all the
  10441.         windows.
  10442.  
  10443.         '''
  10444.         return _core_.Window_MoveAfterInTabOrder(*args, **kwargs)
  10445.  
  10446.     
  10447.     def MoveBeforeInTabOrder(*args, **kwargs):
  10448.         '''
  10449.         MoveBeforeInTabOrder(self, Window win)
  10450.  
  10451.         Same as `MoveAfterInTabOrder` except that it inserts this window just
  10452.         before win instead of putting it right after it.
  10453.         '''
  10454.         return _core_.Window_MoveBeforeInTabOrder(*args, **kwargs)
  10455.  
  10456.     
  10457.     def GetChildren(*args, **kwargs):
  10458.         """
  10459.         GetChildren(self) -> PyObject
  10460.  
  10461.         Returns a list of the window's children.  NOTE: Currently this is a
  10462.         copy of the child window list maintained by the window, so the return
  10463.         value of this function is only valid as long as the window's children
  10464.         do not change.
  10465.         """
  10466.         return _core_.Window_GetChildren(*args, **kwargs)
  10467.  
  10468.     
  10469.     def GetParent(*args, **kwargs):
  10470.         """
  10471.         GetParent(self) -> Window
  10472.  
  10473.         Returns the parent window of this window, or None if there isn't one.
  10474.         """
  10475.         return _core_.Window_GetParent(*args, **kwargs)
  10476.  
  10477.     
  10478.     def GetGrandParent(*args, **kwargs):
  10479.         """
  10480.         GetGrandParent(self) -> Window
  10481.  
  10482.         Returns the parent of the parent of this window, or None if there
  10483.         isn't one.
  10484.         """
  10485.         return _core_.Window_GetGrandParent(*args, **kwargs)
  10486.  
  10487.     
  10488.     def IsTopLevel(*args, **kwargs):
  10489.         '''
  10490.         IsTopLevel(self) -> bool
  10491.  
  10492.         Returns true if the given window is a top-level one. Currently all
  10493.         frames and dialogs are always considered to be top-level windows (even
  10494.         if they have a parent window).
  10495.         '''
  10496.         return _core_.Window_IsTopLevel(*args, **kwargs)
  10497.  
  10498.     
  10499.     def Reparent(*args, **kwargs):
  10500.         '''
  10501.         Reparent(self, Window newParent) -> bool
  10502.  
  10503.         Reparents the window, i.e the window will be removed from its current
  10504.         parent window (e.g. a non-standard toolbar in a wxFrame) and then
  10505.         re-inserted into another. Available on Windows and GTK.  Returns True
  10506.         if the parent was changed, False otherwise (error or newParent ==
  10507.         oldParent)
  10508.         '''
  10509.         return _core_.Window_Reparent(*args, **kwargs)
  10510.  
  10511.     
  10512.     def AddChild(*args, **kwargs):
  10513.         '''
  10514.         AddChild(self, Window child)
  10515.  
  10516.         Adds a child window. This is called automatically by window creation
  10517.         functions so should not be required by the application programmer.
  10518.         '''
  10519.         return _core_.Window_AddChild(*args, **kwargs)
  10520.  
  10521.     
  10522.     def RemoveChild(*args, **kwargs):
  10523.         '''
  10524.         RemoveChild(self, Window child)
  10525.  
  10526.         Removes a child window. This is called automatically by window
  10527.         deletion functions so should not be required by the application
  10528.         programmer.
  10529.         '''
  10530.         return _core_.Window_RemoveChild(*args, **kwargs)
  10531.  
  10532.     
  10533.     def FindWindowById(*args, **kwargs):
  10534.         '''
  10535.         FindWindowById(self, long winid) -> Window
  10536.  
  10537.         Find a chld of this window by window ID
  10538.         '''
  10539.         return _core_.Window_FindWindowById(*args, **kwargs)
  10540.  
  10541.     
  10542.     def FindWindowByName(*args, **kwargs):
  10543.         '''
  10544.         FindWindowByName(self, String name) -> Window
  10545.  
  10546.         Find a child of this window by name
  10547.         '''
  10548.         return _core_.Window_FindWindowByName(*args, **kwargs)
  10549.  
  10550.     
  10551.     def GetEventHandler(*args, **kwargs):
  10552.         '''
  10553.         GetEventHandler(self) -> EvtHandler
  10554.  
  10555.         Returns the event handler for this window. By default, the window is
  10556.         its own event handler.
  10557.         '''
  10558.         return _core_.Window_GetEventHandler(*args, **kwargs)
  10559.  
  10560.     
  10561.     def SetEventHandler(*args, **kwargs):
  10562.         '''
  10563.         SetEventHandler(self, EvtHandler handler)
  10564.  
  10565.         Sets the event handler for this window.  An event handler is an object
  10566.         that is capable of processing the events sent to a window. By default,
  10567.         the window is its own event handler, but an application may wish to
  10568.         substitute another, for example to allow central implementation of
  10569.         event-handling for a variety of different window classes.
  10570.  
  10571.         It is usually better to use `wx.Window.PushEventHandler` since this sets
  10572.         up a chain of event handlers, where an event not handled by one event
  10573.         handler is handed to the next one in the chain.
  10574.         '''
  10575.         return _core_.Window_SetEventHandler(*args, **kwargs)
  10576.  
  10577.     
  10578.     def PushEventHandler(*args, **kwargs):
  10579.         '''
  10580.         PushEventHandler(self, EvtHandler handler)
  10581.  
  10582.         Pushes this event handler onto the event handler stack for the window.
  10583.         An event handler is an object that is capable of processing the events
  10584.         sent to a window. By default, the window is its own event handler, but
  10585.         an application may wish to substitute another, for example to allow
  10586.         central implementation of event-handling for a variety of different
  10587.         window classes.
  10588.  
  10589.         wx.Window.PushEventHandler allows an application to set up a chain of
  10590.         event handlers, where an event not handled by one event handler is
  10591.         handed to the next one in the chain. Use `wx.Window.PopEventHandler` to
  10592.         remove the event handler.
  10593.         '''
  10594.         return _core_.Window_PushEventHandler(*args, **kwargs)
  10595.  
  10596.     
  10597.     def PopEventHandler(*args, **kwargs):
  10598.         '''
  10599.         PopEventHandler(self, bool deleteHandler=False) -> EvtHandler
  10600.  
  10601.         Removes and returns the top-most event handler on the event handler
  10602.         stack.  If deleteHandler is True then the wx.EvtHandler object will be
  10603.         destroyed after it is popped.
  10604.         '''
  10605.         return _core_.Window_PopEventHandler(*args, **kwargs)
  10606.  
  10607.     
  10608.     def RemoveEventHandler(*args, **kwargs):
  10609.         '''
  10610.         RemoveEventHandler(self, EvtHandler handler) -> bool
  10611.  
  10612.         Find the given handler in the event handler chain and remove (but not
  10613.         delete) it from the event handler chain, return True if it was found
  10614.         and False otherwise (this also results in an assert failure so this
  10615.         function should only be called when the handler is supposed to be
  10616.         there.)
  10617.         '''
  10618.         return _core_.Window_RemoveEventHandler(*args, **kwargs)
  10619.  
  10620.     
  10621.     def SetValidator(*args, **kwargs):
  10622.         '''
  10623.         SetValidator(self, Validator validator)
  10624.  
  10625.         Deletes the current validator (if any) and sets the window validator,
  10626.         having called wx.Validator.Clone to create a new validator of this
  10627.         type.
  10628.         '''
  10629.         return _core_.Window_SetValidator(*args, **kwargs)
  10630.  
  10631.     
  10632.     def GetValidator(*args, **kwargs):
  10633.         '''
  10634.         GetValidator(self) -> Validator
  10635.  
  10636.         Returns a pointer to the current validator for the window, or None if
  10637.         there is none.
  10638.         '''
  10639.         return _core_.Window_GetValidator(*args, **kwargs)
  10640.  
  10641.     
  10642.     def Validate(*args, **kwargs):
  10643.         '''
  10644.         Validate(self) -> bool
  10645.  
  10646.         Validates the current values of the child controls using their
  10647.         validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
  10648.         style flag set, the method will also call Validate() of all child
  10649.         windows.  Returns false if any of the validations failed.
  10650.         '''
  10651.         return _core_.Window_Validate(*args, **kwargs)
  10652.  
  10653.     
  10654.     def TransferDataToWindow(*args, **kwargs):
  10655.         '''
  10656.         TransferDataToWindow(self) -> bool
  10657.  
  10658.         Transfers values to child controls from data areas specified by their
  10659.         validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
  10660.         style flag set, the method will also call TransferDataToWindow() of
  10661.         all child windows.
  10662.         '''
  10663.         return _core_.Window_TransferDataToWindow(*args, **kwargs)
  10664.  
  10665.     
  10666.     def TransferDataFromWindow(*args, **kwargs):
  10667.         '''
  10668.         TransferDataFromWindow(self) -> bool
  10669.  
  10670.         Transfers values from child controls to data areas specified by their
  10671.         validators. Returns false if a transfer failed.  If the window has
  10672.         wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
  10673.         also call TransferDataFromWindow() of all child windows.
  10674.         '''
  10675.         return _core_.Window_TransferDataFromWindow(*args, **kwargs)
  10676.  
  10677.     
  10678.     def InitDialog(*args, **kwargs):
  10679.         '''
  10680.         InitDialog(self)
  10681.  
  10682.         Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
  10683.         to the dialog via validators.
  10684.         '''
  10685.         return _core_.Window_InitDialog(*args, **kwargs)
  10686.  
  10687.     
  10688.     def SetAcceleratorTable(*args, **kwargs):
  10689.         '''
  10690.         SetAcceleratorTable(self, AcceleratorTable accel)
  10691.  
  10692.         Sets the accelerator table for this window.
  10693.         '''
  10694.         return _core_.Window_SetAcceleratorTable(*args, **kwargs)
  10695.  
  10696.     
  10697.     def GetAcceleratorTable(*args, **kwargs):
  10698.         '''
  10699.         GetAcceleratorTable(self) -> AcceleratorTable
  10700.  
  10701.         Gets the accelerator table for this window.
  10702.         '''
  10703.         return _core_.Window_GetAcceleratorTable(*args, **kwargs)
  10704.  
  10705.     
  10706.     def RegisterHotKey(*args, **kwargs):
  10707.         '''
  10708.         RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool
  10709.  
  10710.         Registers a system wide hotkey. Every time the user presses the hotkey
  10711.         registered here, this window will receive a hotkey event. It will
  10712.         receive the event even if the application is in the background and
  10713.         does not have the input focus because the user is working with some
  10714.         other application.  To bind an event handler function to this hotkey
  10715.         use EVT_HOTKEY with an id equal to hotkeyId.  Returns True if the
  10716.         hotkey was registered successfully.
  10717.         '''
  10718.         return _core_.Window_RegisterHotKey(*args, **kwargs)
  10719.  
  10720.     
  10721.     def UnregisterHotKey(*args, **kwargs):
  10722.         '''
  10723.         UnregisterHotKey(self, int hotkeyId) -> bool
  10724.  
  10725.         Unregisters a system wide hotkey.
  10726.         '''
  10727.         return _core_.Window_UnregisterHotKey(*args, **kwargs)
  10728.  
  10729.     
  10730.     def ConvertDialogPointToPixels(*args, **kwargs):
  10731.         """
  10732.         ConvertDialogPointToPixels(self, Point pt) -> Point
  10733.  
  10734.         Converts a point or size from dialog units to pixels.  Dialog units
  10735.         are used for maintaining a dialog's proportions even if the font
  10736.         changes. For the x dimension, the dialog units are multiplied by the
  10737.         average character width and then divided by 4. For the y dimension,
  10738.         the dialog units are multiplied by the average character height and
  10739.         then divided by 8.
  10740.         """
  10741.         return _core_.Window_ConvertDialogPointToPixels(*args, **kwargs)
  10742.  
  10743.     
  10744.     def ConvertDialogSizeToPixels(*args, **kwargs):
  10745.         """
  10746.         ConvertDialogSizeToPixels(self, Size sz) -> Size
  10747.  
  10748.         Converts a point or size from dialog units to pixels.  Dialog units
  10749.         are used for maintaining a dialog's proportions even if the font
  10750.         changes. For the x dimension, the dialog units are multiplied by the
  10751.         average character width and then divided by 4. For the y dimension,
  10752.         the dialog units are multiplied by the average character height and
  10753.         then divided by 8.
  10754.         """
  10755.         return _core_.Window_ConvertDialogSizeToPixels(*args, **kwargs)
  10756.  
  10757.     
  10758.     def DLG_PNT(*args, **kwargs):
  10759.         """
  10760.         DLG_PNT(self, Point pt) -> Point
  10761.  
  10762.         Converts a point or size from dialog units to pixels.  Dialog units
  10763.         are used for maintaining a dialog's proportions even if the font
  10764.         changes. For the x dimension, the dialog units are multiplied by the
  10765.         average character width and then divided by 4. For the y dimension,
  10766.         the dialog units are multiplied by the average character height and
  10767.         then divided by 8.
  10768.         """
  10769.         return _core_.Window_DLG_PNT(*args, **kwargs)
  10770.  
  10771.     
  10772.     def DLG_SZE(*args, **kwargs):
  10773.         """
  10774.         DLG_SZE(self, Size sz) -> Size
  10775.  
  10776.         Converts a point or size from dialog units to pixels.  Dialog units
  10777.         are used for maintaining a dialog's proportions even if the font
  10778.         changes. For the x dimension, the dialog units are multiplied by the
  10779.         average character width and then divided by 4. For the y dimension,
  10780.         the dialog units are multiplied by the average character height and
  10781.         then divided by 8.
  10782.         """
  10783.         return _core_.Window_DLG_SZE(*args, **kwargs)
  10784.  
  10785.     
  10786.     def ConvertPixelPointToDialog(*args, **kwargs):
  10787.         '''ConvertPixelPointToDialog(self, Point pt) -> Point'''
  10788.         return _core_.Window_ConvertPixelPointToDialog(*args, **kwargs)
  10789.  
  10790.     
  10791.     def ConvertPixelSizeToDialog(*args, **kwargs):
  10792.         '''ConvertPixelSizeToDialog(self, Size sz) -> Size'''
  10793.         return _core_.Window_ConvertPixelSizeToDialog(*args, **kwargs)
  10794.  
  10795.     
  10796.     def WarpPointer(*args, **kwargs):
  10797.         '''
  10798.         WarpPointer(self, int x, int y)
  10799.  
  10800.         Moves the pointer to the given position on the window.
  10801.  
  10802.         NOTE: This function is not supported under Mac because Apple Human
  10803.         Interface Guidelines forbid moving the mouse cursor programmatically.
  10804.         '''
  10805.         return _core_.Window_WarpPointer(*args, **kwargs)
  10806.  
  10807.     
  10808.     def CaptureMouse(*args, **kwargs):
  10809.         '''
  10810.         CaptureMouse(self)
  10811.  
  10812.         Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
  10813.         release the capture.
  10814.  
  10815.         Note that wxWindows maintains the stack of windows having captured the
  10816.         mouse and when the mouse is released the capture returns to the window
  10817.         which had had captured it previously and it is only really released if
  10818.         there were no previous window. In particular, this means that you must
  10819.         release the mouse as many times as you capture it.
  10820.         '''
  10821.         return _core_.Window_CaptureMouse(*args, **kwargs)
  10822.  
  10823.     
  10824.     def ReleaseMouse(*args, **kwargs):
  10825.         '''
  10826.         ReleaseMouse(self)
  10827.  
  10828.         Releases mouse input captured with wx.Window.CaptureMouse.
  10829.         '''
  10830.         return _core_.Window_ReleaseMouse(*args, **kwargs)
  10831.  
  10832.     
  10833.     def GetCapture(*args, **kwargs):
  10834.         '''
  10835.         GetCapture() -> Window
  10836.  
  10837.         Returns the window which currently captures the mouse or None
  10838.         '''
  10839.         return _core_.Window_GetCapture(*args, **kwargs)
  10840.  
  10841.     GetCapture = staticmethod(GetCapture)
  10842.     
  10843.     def HasCapture(*args, **kwargs):
  10844.         '''
  10845.         HasCapture(self) -> bool
  10846.  
  10847.         Returns true if this window has the current mouse capture.
  10848.         '''
  10849.         return _core_.Window_HasCapture(*args, **kwargs)
  10850.  
  10851.     
  10852.     def Refresh(*args, **kwargs):
  10853.         '''
  10854.         Refresh(self, bool eraseBackground=True, Rect rect=None)
  10855.  
  10856.         Mark the specified rectangle (or the whole window) as "dirty" so it
  10857.         will be repainted.  Causes an EVT_PAINT event to be generated and sent
  10858.         to the window.
  10859.         '''
  10860.         return _core_.Window_Refresh(*args, **kwargs)
  10861.  
  10862.     
  10863.     def RefreshRect(*args, **kwargs):
  10864.         '''
  10865.         RefreshRect(self, Rect rect, bool eraseBackground=True)
  10866.  
  10867.         Redraws the contents of the given rectangle: the area inside it will
  10868.         be repainted.  This is the same as Refresh but has a nicer syntax.
  10869.         '''
  10870.         return _core_.Window_RefreshRect(*args, **kwargs)
  10871.  
  10872.     
  10873.     def Update(*args, **kwargs):
  10874.         """
  10875.         Update(self)
  10876.  
  10877.         Calling this method immediately repaints the invalidated area of the
  10878.         window instead of waiting for the EVT_PAINT event to happen, (normally
  10879.         this would usually only happen when the flow of control returns to the
  10880.         event loop.)  Notice that this function doesn't refresh the window and
  10881.         does nothing if the window has been already repainted.  Use Refresh
  10882.         first if you want to immediately redraw the window (or some portion of
  10883.         it) unconditionally.
  10884.         """
  10885.         return _core_.Window_Update(*args, **kwargs)
  10886.  
  10887.     
  10888.     def ClearBackground(*args, **kwargs):
  10889.         '''
  10890.         ClearBackground(self)
  10891.  
  10892.         Clears the window by filling it with the current background
  10893.         colour. Does not cause an erase background event to be generated.
  10894.         '''
  10895.         return _core_.Window_ClearBackground(*args, **kwargs)
  10896.  
  10897.     
  10898.     def Freeze(*args, **kwargs):
  10899.         '''
  10900.         Freeze(self)
  10901.  
  10902.         Freezes the window or, in other words, prevents any updates from
  10903.         taking place on screen, the window is not redrawn at all. Thaw must be
  10904.         called to reenable window redrawing.  Calls to Freeze/Thaw may be
  10905.         nested, with the actual Thaw being delayed until all the nesting has
  10906.         been undone.
  10907.  
  10908.         This method is useful for visual appearance optimization (for example,
  10909.         it is a good idea to use it before inserting large amount of text into
  10910.         a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
  10911.         for all controls so it is mostly just a hint to wxWindows and not a
  10912.         mandatory directive.
  10913.         '''
  10914.         return _core_.Window_Freeze(*args, **kwargs)
  10915.  
  10916.     
  10917.     def Thaw(*args, **kwargs):
  10918.         '''
  10919.         Thaw(self)
  10920.  
  10921.         Reenables window updating after a previous call to Freeze.  Calls to
  10922.         Freeze/Thaw may be nested, so Thaw must be called the same number of
  10923.         times that Freeze was before the window will be updated.
  10924.         '''
  10925.         return _core_.Window_Thaw(*args, **kwargs)
  10926.  
  10927.     
  10928.     def PrepareDC(*args, **kwargs):
  10929.         '''
  10930.         PrepareDC(self, DC dc)
  10931.  
  10932.         Call this function to prepare the device context for drawing a
  10933.         scrolled image. It sets the device origin according to the current
  10934.         scroll position.
  10935.         '''
  10936.         return _core_.Window_PrepareDC(*args, **kwargs)
  10937.  
  10938.     
  10939.     def GetUpdateRegion(*args, **kwargs):
  10940.         '''
  10941.         GetUpdateRegion(self) -> Region
  10942.  
  10943.         Returns the region specifying which parts of the window have been
  10944.         damaged. Should only be called within an EVT_PAINT handler.
  10945.         '''
  10946.         return _core_.Window_GetUpdateRegion(*args, **kwargs)
  10947.  
  10948.     
  10949.     def GetUpdateClientRect(*args, **kwargs):
  10950.         '''
  10951.         GetUpdateClientRect(self) -> Rect
  10952.  
  10953.         Get the update rectangle region bounding box in client coords.
  10954.         '''
  10955.         return _core_.Window_GetUpdateClientRect(*args, **kwargs)
  10956.  
  10957.     
  10958.     def IsExposed(*args, **kwargs):
  10959.         '''
  10960.         IsExposed(self, int x, int y, int w=1, int h=1) -> bool
  10961.  
  10962.         Returns true if the given point or rectangle area has been exposed
  10963.         since the last repaint. Call this in an paint event handler to
  10964.         optimize redrawing by only redrawing those areas, which have been
  10965.         exposed.
  10966.         '''
  10967.         return _core_.Window_IsExposed(*args, **kwargs)
  10968.  
  10969.     
  10970.     def IsExposedPoint(*args, **kwargs):
  10971.         '''
  10972.         IsExposedPoint(self, Point pt) -> bool
  10973.  
  10974.         Returns true if the given point or rectangle area has been exposed
  10975.         since the last repaint. Call this in an paint event handler to
  10976.         optimize redrawing by only redrawing those areas, which have been
  10977.         exposed.
  10978.         '''
  10979.         return _core_.Window_IsExposedPoint(*args, **kwargs)
  10980.  
  10981.     
  10982.     def IsExposedRect(*args, **kwargs):
  10983.         '''
  10984.         IsExposedRect(self, Rect rect) -> bool
  10985.  
  10986.         Returns true if the given point or rectangle area has been exposed
  10987.         since the last repaint. Call this in an paint event handler to
  10988.         optimize redrawing by only redrawing those areas, which have been
  10989.         exposed.
  10990.         '''
  10991.         return _core_.Window_IsExposedRect(*args, **kwargs)
  10992.  
  10993.     
  10994.     def GetDefaultAttributes(*args, **kwargs):
  10995.         """
  10996.         GetDefaultAttributes(self) -> VisualAttributes
  10997.  
  10998.         Get the default attributes for an instance of this class.  This is
  10999.         useful if you want to use the same font or colour in your own control
  11000.         as in a standard control -- which is a much better idea than hard
  11001.         coding specific colours or fonts which might look completely out of
  11002.         place on the user's system, especially if it uses themes.
  11003.         """
  11004.         return _core_.Window_GetDefaultAttributes(*args, **kwargs)
  11005.  
  11006.     
  11007.     def GetClassDefaultAttributes(*args, **kwargs):
  11008.         """
  11009.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  11010.  
  11011.         Get the default attributes for this class.  This is useful if you want
  11012.         to use the same font or colour in your own control as in a standard
  11013.         control -- which is a much better idea than hard coding specific
  11014.         colours or fonts which might look completely out of place on the
  11015.         user's system, especially if it uses themes.
  11016.  
  11017.         The variant parameter is only relevant under Mac currently and is
  11018.         ignore under other platforms. Under Mac, it will change the size of
  11019.         the returned font. See `wx.Window.SetWindowVariant` for more about
  11020.         this.
  11021.         """
  11022.         return _core_.Window_GetClassDefaultAttributes(*args, **kwargs)
  11023.  
  11024.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  11025.     
  11026.     def SetBackgroundColour(*args, **kwargs):
  11027.         '''
  11028.         SetBackgroundColour(self, Colour colour) -> bool
  11029.  
  11030.         Sets the background colour of the window.  Returns True if the colour
  11031.         was changed.  The background colour is usually painted by the default
  11032.         EVT_ERASE_BACKGROUND event handler function under Windows and
  11033.         automatically under GTK.  Using `wx.NullColour` will reset the window
  11034.         to the default background colour.
  11035.  
  11036.         Note that setting the background colour may not cause an immediate
  11037.         refresh, so you may wish to call `ClearBackground` or `Refresh` after
  11038.         calling this function.
  11039.  
  11040.         Using this function will disable attempts to use themes for this
  11041.         window, if the system supports them.  Use with care since usually the
  11042.         themes represent the appearance chosen by the user to be used for all
  11043.         applications on the system.
  11044.         '''
  11045.         return _core_.Window_SetBackgroundColour(*args, **kwargs)
  11046.  
  11047.     
  11048.     def SetOwnBackgroundColour(*args, **kwargs):
  11049.         '''SetOwnBackgroundColour(self, Colour colour)'''
  11050.         return _core_.Window_SetOwnBackgroundColour(*args, **kwargs)
  11051.  
  11052.     
  11053.     def SetForegroundColour(*args, **kwargs):
  11054.         '''
  11055.         SetForegroundColour(self, Colour colour) -> bool
  11056.  
  11057.         Sets the foreground colour of the window.  Returns True is the colour
  11058.         was changed.  The interpretation of foreground colour is dependent on
  11059.         the window class; it may be the text colour or other colour, or it may
  11060.         not be used at all.
  11061.         '''
  11062.         return _core_.Window_SetForegroundColour(*args, **kwargs)
  11063.  
  11064.     
  11065.     def SetOwnForegroundColour(*args, **kwargs):
  11066.         '''SetOwnForegroundColour(self, Colour colour)'''
  11067.         return _core_.Window_SetOwnForegroundColour(*args, **kwargs)
  11068.  
  11069.     
  11070.     def GetBackgroundColour(*args, **kwargs):
  11071.         '''
  11072.         GetBackgroundColour(self) -> Colour
  11073.  
  11074.         Returns the background colour of the window.
  11075.         '''
  11076.         return _core_.Window_GetBackgroundColour(*args, **kwargs)
  11077.  
  11078.     
  11079.     def GetForegroundColour(*args, **kwargs):
  11080.         '''
  11081.         GetForegroundColour(self) -> Colour
  11082.  
  11083.         Returns the foreground colour of the window.  The interpretation of
  11084.         foreground colour is dependent on the window class; it may be the text
  11085.         colour or other colour, or it may not be used at all.
  11086.         '''
  11087.         return _core_.Window_GetForegroundColour(*args, **kwargs)
  11088.  
  11089.     
  11090.     def InheritsBackgroundColour(*args, **kwargs):
  11091.         '''InheritsBackgroundColour(self) -> bool'''
  11092.         return _core_.Window_InheritsBackgroundColour(*args, **kwargs)
  11093.  
  11094.     
  11095.     def UseBgCol(*args, **kwargs):
  11096.         '''UseBgCol(self) -> bool'''
  11097.         return _core_.Window_UseBgCol(*args, **kwargs)
  11098.  
  11099.     
  11100.     def SetBackgroundStyle(*args, **kwargs):
  11101.         '''
  11102.         SetBackgroundStyle(self, int style) -> bool
  11103.  
  11104.         Returns the background style of the window. The background style
  11105.         indicates how the background of the window is drawn.
  11106.  
  11107.             ======================  ========================================
  11108.             wx.BG_STYLE_SYSTEM      The background colour or pattern should
  11109.                                     be determined by the system
  11110.             wx.BG_STYLE_COLOUR      The background should be a solid colour
  11111.             wx.BG_STYLE_CUSTOM      The background will be implemented by the
  11112.                                     application.
  11113.             ======================  ========================================
  11114.  
  11115.         On GTK+, use of wx.BG_STYLE_CUSTOM allows the flicker-free drawing of
  11116.         a custom background, such as a tiled bitmap. Currently the style has
  11117.         no effect on other platforms.
  11118.  
  11119.         :see: `GetBackgroundStyle`, `SetBackgroundColour`
  11120.         '''
  11121.         return _core_.Window_SetBackgroundStyle(*args, **kwargs)
  11122.  
  11123.     
  11124.     def GetBackgroundStyle(*args, **kwargs):
  11125.         '''
  11126.         GetBackgroundStyle(self) -> int
  11127.  
  11128.         Returns the background style of the window.
  11129.  
  11130.         :see: `SetBackgroundStyle`
  11131.         '''
  11132.         return _core_.Window_GetBackgroundStyle(*args, **kwargs)
  11133.  
  11134.     
  11135.     def HasTransparentBackground(*args, **kwargs):
  11136.         """
  11137.         HasTransparentBackground(self) -> bool
  11138.  
  11139.         Returns True if this window's background is transparent (as, for
  11140.         example, for `wx.StaticText`) and should show the parent window's
  11141.         background.
  11142.  
  11143.         This method is mostly used internally by the library itself and you
  11144.         normally shouldn't have to call it. You may, however, have to override
  11145.         it in your custom control classes to ensure that background is painted
  11146.         correctly.
  11147.         """
  11148.         return _core_.Window_HasTransparentBackground(*args, **kwargs)
  11149.  
  11150.     
  11151.     def SetCursor(*args, **kwargs):
  11152.         """
  11153.         SetCursor(self, Cursor cursor) -> bool
  11154.  
  11155.         Sets the window's cursor. Notice that the window cursor also sets it
  11156.         for the children of the window implicitly.
  11157.  
  11158.         The cursor may be wx.NullCursor in which case the window cursor will
  11159.         be reset back to default.
  11160.         """
  11161.         return _core_.Window_SetCursor(*args, **kwargs)
  11162.  
  11163.     
  11164.     def GetCursor(*args, **kwargs):
  11165.         '''
  11166.         GetCursor(self) -> Cursor
  11167.  
  11168.         Return the cursor associated with this window.
  11169.         '''
  11170.         return _core_.Window_GetCursor(*args, **kwargs)
  11171.  
  11172.     
  11173.     def SetFont(*args, **kwargs):
  11174.         '''
  11175.         SetFont(self, Font font) -> bool
  11176.  
  11177.         Sets the font for this window.
  11178.         '''
  11179.         return _core_.Window_SetFont(*args, **kwargs)
  11180.  
  11181.     
  11182.     def SetOwnFont(*args, **kwargs):
  11183.         '''SetOwnFont(self, Font font)'''
  11184.         return _core_.Window_SetOwnFont(*args, **kwargs)
  11185.  
  11186.     
  11187.     def GetFont(*args, **kwargs):
  11188.         '''
  11189.         GetFont(self) -> Font
  11190.  
  11191.         Returns the default font used for this window.
  11192.         '''
  11193.         return _core_.Window_GetFont(*args, **kwargs)
  11194.  
  11195.     
  11196.     def SetCaret(*args, **kwargs):
  11197.         '''
  11198.         SetCaret(self, Caret caret)
  11199.  
  11200.         Sets the caret associated with the window.
  11201.         '''
  11202.         return _core_.Window_SetCaret(*args, **kwargs)
  11203.  
  11204.     
  11205.     def GetCaret(*args, **kwargs):
  11206.         '''
  11207.         GetCaret(self) -> Caret
  11208.  
  11209.         Returns the caret associated with the window.
  11210.         '''
  11211.         return _core_.Window_GetCaret(*args, **kwargs)
  11212.  
  11213.     
  11214.     def GetCharHeight(*args, **kwargs):
  11215.         '''
  11216.         GetCharHeight(self) -> int
  11217.  
  11218.         Get the (average) character size for the current font.
  11219.         '''
  11220.         return _core_.Window_GetCharHeight(*args, **kwargs)
  11221.  
  11222.     
  11223.     def GetCharWidth(*args, **kwargs):
  11224.         '''
  11225.         GetCharWidth(self) -> int
  11226.  
  11227.         Get the (average) character size for the current font.
  11228.         '''
  11229.         return _core_.Window_GetCharWidth(*args, **kwargs)
  11230.  
  11231.     
  11232.     def GetTextExtent(*args, **kwargs):
  11233.         '''
  11234.         GetTextExtent(String string) -> (width, height)
  11235.  
  11236.         Get the width and height of the text using the current font.
  11237.         '''
  11238.         return _core_.Window_GetTextExtent(*args, **kwargs)
  11239.  
  11240.     
  11241.     def GetFullTextExtent(*args, **kwargs):
  11242.         '''
  11243.         GetFullTextExtent(String string, Font font=None) ->
  11244.            (width, height, descent, externalLeading)
  11245.  
  11246.         Get the width, height, decent and leading of the text using the
  11247.         current or specified font.
  11248.         '''
  11249.         return _core_.Window_GetFullTextExtent(*args, **kwargs)
  11250.  
  11251.     
  11252.     def ClientToScreenXY(*args, **kwargs):
  11253.         '''
  11254.         ClientToScreenXY(int x, int y) -> (x,y)
  11255.  
  11256.         Converts to screen coordinates from coordinates relative to this window.
  11257.         '''
  11258.         return _core_.Window_ClientToScreenXY(*args, **kwargs)
  11259.  
  11260.     
  11261.     def ScreenToClientXY(*args, **kwargs):
  11262.         '''
  11263.         ScreenToClientXY(int x, int y) -> (x,y)
  11264.  
  11265.         Converts from screen to client window coordinates.
  11266.         '''
  11267.         return _core_.Window_ScreenToClientXY(*args, **kwargs)
  11268.  
  11269.     
  11270.     def ClientToScreen(*args, **kwargs):
  11271.         '''
  11272.         ClientToScreen(self, Point pt) -> Point
  11273.  
  11274.         Converts to screen coordinates from coordinates relative to this window.
  11275.         '''
  11276.         return _core_.Window_ClientToScreen(*args, **kwargs)
  11277.  
  11278.     
  11279.     def ScreenToClient(*args, **kwargs):
  11280.         '''
  11281.         ScreenToClient(self, Point pt) -> Point
  11282.  
  11283.         Converts from screen to client window coordinates.
  11284.         '''
  11285.         return _core_.Window_ScreenToClient(*args, **kwargs)
  11286.  
  11287.     
  11288.     def HitTestXY(*args, **kwargs):
  11289.         '''
  11290.         HitTestXY(self, int x, int y) -> int
  11291.  
  11292.         Test where the given (in client coords) point lies
  11293.         '''
  11294.         return _core_.Window_HitTestXY(*args, **kwargs)
  11295.  
  11296.     
  11297.     def HitTest(*args, **kwargs):
  11298.         '''
  11299.         HitTest(self, Point pt) -> int
  11300.  
  11301.         Test where the given (in client coords) point lies
  11302.         '''
  11303.         return _core_.Window_HitTest(*args, **kwargs)
  11304.  
  11305.     
  11306.     def GetBorder(*args):
  11307.         '''
  11308.         GetBorder(self, long flags) -> int
  11309.         GetBorder(self) -> int
  11310.  
  11311.         Get border for the flags of this window
  11312.         '''
  11313.         return _core_.Window_GetBorder(*args)
  11314.  
  11315.     
  11316.     def UpdateWindowUI(*args, **kwargs):
  11317.         '''
  11318.         UpdateWindowUI(self, long flags=UPDATE_UI_NONE)
  11319.  
  11320.         This function sends EVT_UPDATE_UI events to the window. The particular
  11321.         implementation depends on the window; for example a wx.ToolBar will
  11322.         send an update UI event for each toolbar button, and a wx.Frame will
  11323.         send an update UI event for each menubar menu item. You can call this
  11324.         function from your application to ensure that your UI is up-to-date at
  11325.         a particular point in time (as far as your EVT_UPDATE_UI handlers are
  11326.         concerned). This may be necessary if you have called
  11327.         `wx.UpdateUIEvent.SetMode` or `wx.UpdateUIEvent.SetUpdateInterval` to
  11328.         limit the overhead that wxWindows incurs by sending update UI events
  11329.         in idle time.
  11330.         '''
  11331.         return _core_.Window_UpdateWindowUI(*args, **kwargs)
  11332.  
  11333.     
  11334.     def PopupMenuXY(*args, **kwargs):
  11335.         '''
  11336.         PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool
  11337.  
  11338.         Pops up the given menu at the specified coordinates, relative to this window,
  11339.         and returns control when the user has dismissed the menu. If a menu item is
  11340.         selected, the corresponding menu event is generated and will be processed as
  11341.         usual.  If the default position is given then the current position of the
  11342.         mouse cursor will be used.
  11343.         '''
  11344.         return _core_.Window_PopupMenuXY(*args, **kwargs)
  11345.  
  11346.     
  11347.     def PopupMenu(*args, **kwargs):
  11348.         '''
  11349.         PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool
  11350.  
  11351.         Pops up the given menu at the specified coordinates, relative to this window,
  11352.         and returns control when the user has dismissed the menu. If a menu item is
  11353.         selected, the corresponding menu event is generated and will be processed as
  11354.         usual.  If the default position is given then the current position of the
  11355.         mouse cursor will be used.
  11356.         '''
  11357.         return _core_.Window_PopupMenu(*args, **kwargs)
  11358.  
  11359.     
  11360.     def GetHandle(*args, **kwargs):
  11361.         '''
  11362.         GetHandle(self) -> long
  11363.  
  11364.         Returns the platform-specific handle (as a long integer) of the
  11365.         physical window.  Currently on wxMac it returns the handle of the
  11366.         toplevel parent of the window.
  11367.         '''
  11368.         return _core_.Window_GetHandle(*args, **kwargs)
  11369.  
  11370.     
  11371.     def AssociateHandle(*args, **kwargs):
  11372.         '''
  11373.         AssociateHandle(self, long handle)
  11374.  
  11375.         Associate the window with a new native handle
  11376.         '''
  11377.         return _core_.Window_AssociateHandle(*args, **kwargs)
  11378.  
  11379.     
  11380.     def DissociateHandle(*args, **kwargs):
  11381.         '''
  11382.         DissociateHandle(self)
  11383.  
  11384.         Dissociate the current native handle from the window
  11385.         '''
  11386.         return _core_.Window_DissociateHandle(*args, **kwargs)
  11387.  
  11388.     
  11389.     def OnPaint(*args, **kwargs):
  11390.         '''OnPaint(self, PaintEvent event)'''
  11391.         return _core_.Window_OnPaint(*args, **kwargs)
  11392.  
  11393.     
  11394.     def HasScrollbar(*args, **kwargs):
  11395.         '''
  11396.         HasScrollbar(self, int orient) -> bool
  11397.  
  11398.         Does the window have the scrollbar for this orientation?
  11399.         '''
  11400.         return _core_.Window_HasScrollbar(*args, **kwargs)
  11401.  
  11402.     
  11403.     def SetScrollbar(*args, **kwargs):
  11404.         '''
  11405.         SetScrollbar(self, int orientation, int position, int thumbSize, int range, 
  11406.             bool refresh=True)
  11407.  
  11408.         Sets the scrollbar properties of a built-in scrollbar.
  11409.         '''
  11410.         return _core_.Window_SetScrollbar(*args, **kwargs)
  11411.  
  11412.     
  11413.     def SetScrollPos(*args, **kwargs):
  11414.         '''
  11415.         SetScrollPos(self, int orientation, int pos, bool refresh=True)
  11416.  
  11417.         Sets the position of one of the built-in scrollbars.
  11418.         '''
  11419.         return _core_.Window_SetScrollPos(*args, **kwargs)
  11420.  
  11421.     
  11422.     def GetScrollPos(*args, **kwargs):
  11423.         '''
  11424.         GetScrollPos(self, int orientation) -> int
  11425.  
  11426.         Returns the built-in scrollbar position.
  11427.         '''
  11428.         return _core_.Window_GetScrollPos(*args, **kwargs)
  11429.  
  11430.     
  11431.     def GetScrollThumb(*args, **kwargs):
  11432.         '''
  11433.         GetScrollThumb(self, int orientation) -> int
  11434.  
  11435.         Returns the built-in scrollbar thumb size.
  11436.         '''
  11437.         return _core_.Window_GetScrollThumb(*args, **kwargs)
  11438.  
  11439.     
  11440.     def GetScrollRange(*args, **kwargs):
  11441.         '''
  11442.         GetScrollRange(self, int orientation) -> int
  11443.  
  11444.         Returns the built-in scrollbar range.
  11445.         '''
  11446.         return _core_.Window_GetScrollRange(*args, **kwargs)
  11447.  
  11448.     
  11449.     def ScrollWindow(*args, **kwargs):
  11450.         '''
  11451.         ScrollWindow(self, int dx, int dy, Rect rect=None)
  11452.  
  11453.         Physically scrolls the pixels in the window and move child windows
  11454.         accordingly.  Use this function to optimise your scrolling
  11455.         implementations, to minimise the area that must be redrawn. Note that
  11456.         it is rarely required to call this function from a user program.
  11457.         '''
  11458.         return _core_.Window_ScrollWindow(*args, **kwargs)
  11459.  
  11460.     
  11461.     def ScrollLines(*args, **kwargs):
  11462.         '''
  11463.         ScrollLines(self, int lines) -> bool
  11464.  
  11465.         If the platform and window class supports it, scrolls the window by
  11466.         the given number of lines down, if lines is positive, or up if lines
  11467.         is negative.  Returns True if the window was scrolled, False if it was
  11468.         already on top/bottom and nothing was done.
  11469.         '''
  11470.         return _core_.Window_ScrollLines(*args, **kwargs)
  11471.  
  11472.     
  11473.     def ScrollPages(*args, **kwargs):
  11474.         '''
  11475.         ScrollPages(self, int pages) -> bool
  11476.  
  11477.         If the platform and window class supports it, scrolls the window by
  11478.         the given number of pages down, if pages is positive, or up if pages
  11479.         is negative.  Returns True if the window was scrolled, False if it was
  11480.         already on top/bottom and nothing was done.
  11481.         '''
  11482.         return _core_.Window_ScrollPages(*args, **kwargs)
  11483.  
  11484.     
  11485.     def LineUp(*args, **kwargs):
  11486.         '''
  11487.         LineUp(self) -> bool
  11488.  
  11489.         This is just a wrapper for ScrollLines(-1).
  11490.         '''
  11491.         return _core_.Window_LineUp(*args, **kwargs)
  11492.  
  11493.     
  11494.     def LineDown(*args, **kwargs):
  11495.         '''
  11496.         LineDown(self) -> bool
  11497.  
  11498.         This is just a wrapper for ScrollLines(1).
  11499.         '''
  11500.         return _core_.Window_LineDown(*args, **kwargs)
  11501.  
  11502.     
  11503.     def PageUp(*args, **kwargs):
  11504.         '''
  11505.         PageUp(self) -> bool
  11506.  
  11507.         This is just a wrapper for ScrollPages(-1).
  11508.         '''
  11509.         return _core_.Window_PageUp(*args, **kwargs)
  11510.  
  11511.     
  11512.     def PageDown(*args, **kwargs):
  11513.         '''
  11514.         PageDown(self) -> bool
  11515.  
  11516.         This is just a wrapper for ScrollPages(1).
  11517.         '''
  11518.         return _core_.Window_PageDown(*args, **kwargs)
  11519.  
  11520.     
  11521.     def SetHelpText(*args, **kwargs):
  11522.         '''
  11523.         SetHelpText(self, String text)
  11524.  
  11525.         Sets the help text to be used as context-sensitive help for this
  11526.         window.  Note that the text is actually stored by the current
  11527.         wxHelpProvider implementation, and not in the window object itself.
  11528.         '''
  11529.         return _core_.Window_SetHelpText(*args, **kwargs)
  11530.  
  11531.     
  11532.     def SetHelpTextForId(*args, **kwargs):
  11533.         '''
  11534.         SetHelpTextForId(self, String text)
  11535.  
  11536.         Associate this help text with all windows with the same id as this
  11537.         one.
  11538.         '''
  11539.         return _core_.Window_SetHelpTextForId(*args, **kwargs)
  11540.  
  11541.     
  11542.     def GetHelpText(*args, **kwargs):
  11543.         '''
  11544.         GetHelpText(self) -> String
  11545.  
  11546.         Gets the help text to be used as context-sensitive help for this
  11547.         window.  Note that the text is actually stored by the current
  11548.         wxHelpProvider implementation, and not in the window object itself.
  11549.         '''
  11550.         return _core_.Window_GetHelpText(*args, **kwargs)
  11551.  
  11552.     
  11553.     def SetToolTipString(*args, **kwargs):
  11554.         '''
  11555.         SetToolTipString(self, String tip)
  11556.  
  11557.         Attach a tooltip to the window.
  11558.         '''
  11559.         return _core_.Window_SetToolTipString(*args, **kwargs)
  11560.  
  11561.     
  11562.     def SetToolTip(*args, **kwargs):
  11563.         '''
  11564.         SetToolTip(self, ToolTip tip)
  11565.  
  11566.         Attach a tooltip to the window.
  11567.         '''
  11568.         return _core_.Window_SetToolTip(*args, **kwargs)
  11569.  
  11570.     
  11571.     def GetToolTip(*args, **kwargs):
  11572.         '''
  11573.         GetToolTip(self) -> ToolTip
  11574.  
  11575.         get the associated tooltip or None if none
  11576.         '''
  11577.         return _core_.Window_GetToolTip(*args, **kwargs)
  11578.  
  11579.     
  11580.     def SetDropTarget(*args, **kwargs):
  11581.         '''
  11582.         SetDropTarget(self, DropTarget dropTarget)
  11583.  
  11584.         Associates a drop target with this window.  If the window already has
  11585.         a drop target, it is deleted.
  11586.         '''
  11587.         return _core_.Window_SetDropTarget(*args, **kwargs)
  11588.  
  11589.     
  11590.     def GetDropTarget(*args, **kwargs):
  11591.         '''
  11592.         GetDropTarget(self) -> DropTarget
  11593.  
  11594.         Returns the associated drop target, which may be None.
  11595.         '''
  11596.         return _core_.Window_GetDropTarget(*args, **kwargs)
  11597.  
  11598.     
  11599.     def DragAcceptFiles(*args, **kwargs):
  11600.         '''
  11601.         DragAcceptFiles(self, bool accept)
  11602.  
  11603.         Enables or disables eligibility for drop file events, EVT_DROP_FILES.
  11604.         Only functional on Windows.
  11605.         '''
  11606.         return _core_.Window_DragAcceptFiles(*args, **kwargs)
  11607.  
  11608.     
  11609.     def SetConstraints(*args, **kwargs):
  11610.         """
  11611.         SetConstraints(self, LayoutConstraints constraints)
  11612.  
  11613.         Sets the window to have the given layout constraints. If an existing
  11614.         layout constraints object is already owned by the window, it will be
  11615.         deleted.  Pass None to disassociate and delete the window's current
  11616.         constraints.
  11617.  
  11618.         You must call SetAutoLayout to tell a window to use the constraints
  11619.         automatically in its default EVT_SIZE handler; otherwise, you must
  11620.         handle EVT_SIZE yourself and call Layout() explicitly. When setting
  11621.         both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
  11622.         effect.
  11623.         """
  11624.         return _core_.Window_SetConstraints(*args, **kwargs)
  11625.  
  11626.     
  11627.     def GetConstraints(*args, **kwargs):
  11628.         """
  11629.         GetConstraints(self) -> LayoutConstraints
  11630.  
  11631.         Returns a pointer to the window's layout constraints, or None if there
  11632.         are none.
  11633.         """
  11634.         return _core_.Window_GetConstraints(*args, **kwargs)
  11635.  
  11636.     
  11637.     def SetAutoLayout(*args, **kwargs):
  11638.         """
  11639.         SetAutoLayout(self, bool autoLayout)
  11640.  
  11641.         Determines whether the Layout function will be called automatically
  11642.         when the window is resized.  It is called implicitly by SetSizer but
  11643.         if you use SetConstraints you should call it manually or otherwise the
  11644.         window layout won't be correctly updated when its size changes.
  11645.         """
  11646.         return _core_.Window_SetAutoLayout(*args, **kwargs)
  11647.  
  11648.     
  11649.     def GetAutoLayout(*args, **kwargs):
  11650.         '''
  11651.         GetAutoLayout(self) -> bool
  11652.  
  11653.         Returns the current autoLayout setting
  11654.         '''
  11655.         return _core_.Window_GetAutoLayout(*args, **kwargs)
  11656.  
  11657.     
  11658.     def Layout(*args, **kwargs):
  11659.         '''
  11660.         Layout(self) -> bool
  11661.  
  11662.         Invokes the constraint-based layout algorithm or the sizer-based
  11663.         algorithm for this window.  See SetAutoLayout: when auto layout is on,
  11664.         this function gets called automatically by the default EVT_SIZE
  11665.         handler when the window is resized.
  11666.         '''
  11667.         return _core_.Window_Layout(*args, **kwargs)
  11668.  
  11669.     
  11670.     def SetSizer(*args, **kwargs):
  11671.         '''
  11672.         SetSizer(self, Sizer sizer, bool deleteOld=True)
  11673.  
  11674.         Sets the window to have the given layout sizer. The window will then
  11675.         own the object, and will take care of its deletion. If an existing
  11676.         layout sizer object is already owned by the window, it will be deleted
  11677.         if the deleteOld parameter is true. Note that this function will also
  11678.         call SetAutoLayout implicitly with a True parameter if the sizer is
  11679.         non-None, and False otherwise.
  11680.         '''
  11681.         return _core_.Window_SetSizer(*args, **kwargs)
  11682.  
  11683.     
  11684.     def SetSizerAndFit(*args, **kwargs):
  11685.         """
  11686.         SetSizerAndFit(self, Sizer sizer, bool deleteOld=True)
  11687.  
  11688.         The same as SetSizer, except it also sets the size hints for the
  11689.         window based on the sizer's minimum size.
  11690.         """
  11691.         return _core_.Window_SetSizerAndFit(*args, **kwargs)
  11692.  
  11693.     
  11694.     def GetSizer(*args, **kwargs):
  11695.         """
  11696.         GetSizer(self) -> Sizer
  11697.  
  11698.         Return the sizer associated with the window by a previous call to
  11699.         SetSizer or None if there isn't one.
  11700.         """
  11701.         return _core_.Window_GetSizer(*args, **kwargs)
  11702.  
  11703.     
  11704.     def SetContainingSizer(*args, **kwargs):
  11705.         '''
  11706.         SetContainingSizer(self, Sizer sizer)
  11707.  
  11708.         This normally does not need to be called by application code. It is
  11709.         called internally when a window is added to a sizer, and is used so
  11710.         the window can remove itself from the sizer when it is destroyed.
  11711.         '''
  11712.         return _core_.Window_SetContainingSizer(*args, **kwargs)
  11713.  
  11714.     
  11715.     def GetContainingSizer(*args, **kwargs):
  11716.         '''
  11717.         GetContainingSizer(self) -> Sizer
  11718.  
  11719.         Return the sizer that this window is a member of, if any, otherwise None.
  11720.         '''
  11721.         return _core_.Window_GetContainingSizer(*args, **kwargs)
  11722.  
  11723.     
  11724.     def InheritAttributes(*args, **kwargs):
  11725.         """
  11726.         InheritAttributes(self)
  11727.  
  11728.         This function is (or should be, in case of custom controls) called
  11729.         during window creation to intelligently set up the window visual
  11730.         attributes, that is the font and the foreground and background
  11731.         colours.
  11732.  
  11733.         By 'intelligently' the following is meant: by default, all windows use
  11734.         their own default attributes. However if some of the parent's
  11735.         attributes are explicitly changed (that is, using SetFont and not
  11736.         SetOwnFont) and if the corresponding attribute hadn't been
  11737.         explicitly set for this window itself, then this window takes the same
  11738.         value as used by the parent. In addition, if the window overrides
  11739.         ShouldInheritColours to return false, the colours will not be changed
  11740.         no matter what and only the font might.
  11741.  
  11742.         This rather complicated logic is necessary in order to accommodate the
  11743.         different usage scenarios. The most common one is when all default
  11744.         attributes are used and in this case, nothing should be inherited as
  11745.         in modern GUIs different controls use different fonts (and colours)
  11746.         than their siblings so they can't inherit the same value from the
  11747.         parent. However it was also deemed desirable to allow to simply change
  11748.         the attributes of all children at once by just changing the font or
  11749.         colour of their common parent, hence in this case we do inherit the
  11750.         parents attributes.
  11751.  
  11752.         """
  11753.         return _core_.Window_InheritAttributes(*args, **kwargs)
  11754.  
  11755.     
  11756.     def ShouldInheritColours(*args, **kwargs):
  11757.         '''
  11758.         ShouldInheritColours(self) -> bool
  11759.  
  11760.         Return true from here to allow the colours of this window to be
  11761.         changed by InheritAttributes, returning false forbids inheriting them
  11762.         from the parent window.
  11763.  
  11764.         The base class version returns false, but this method is overridden in
  11765.         wxControl where it returns true.
  11766.         '''
  11767.         return _core_.Window_ShouldInheritColours(*args, **kwargs)
  11768.  
  11769.     
  11770.     def PostCreate(self, pre):
  11771.         '''
  11772.         Phase 3 of the 2-phase create <wink!>
  11773.         Call this method after precreating the window with the 2-phase create method.
  11774.         '''
  11775.         self.this = pre.this
  11776.         self.thisown = pre.thisown
  11777.         pre.thisown = 0
  11778.         if hasattr(self, '_setOORInfo'):
  11779.             self._setOORInfo(self)
  11780.         
  11781.         if hasattr(self, '_setCallbackInfo'):
  11782.             self._setCallbackInfo(self, self.__class__)
  11783.         
  11784.  
  11785.     
  11786.     def SendSizeEvent(self):
  11787.         self.GetEventhandler().ProcessEvent(wx.SizeEvent((-1, -1)))
  11788.  
  11789.  
  11790.  
  11791. class WindowPtr(Window):
  11792.     
  11793.     def __init__(self, this):
  11794.         self.this = this
  11795.         if not hasattr(self, 'thisown'):
  11796.             self.thisown = 0
  11797.         
  11798.         self.__class__ = Window
  11799.  
  11800.  
  11801. _core_.Window_swigregister(WindowPtr)
  11802.  
  11803. def PreWindow(*args, **kwargs):
  11804.     '''
  11805.     PreWindow() -> Window
  11806.  
  11807.     Precreate a Window for 2-phase creation.
  11808.     '''
  11809.     val = _core_.new_PreWindow(*args, **kwargs)
  11810.     val.thisown = 1
  11811.     return val
  11812.  
  11813.  
  11814. def Window_NewControlId(*args, **kwargs):
  11815.     '''
  11816.     Window_NewControlId() -> int
  11817.  
  11818.     Generate a control id for the controls which were not given one.
  11819.     '''
  11820.     return _core_.Window_NewControlId(*args, **kwargs)
  11821.  
  11822.  
  11823. def Window_NextControlId(*args, **kwargs):
  11824.     '''
  11825.     Window_NextControlId(int winid) -> int
  11826.  
  11827.     Get the id of the control following the one with the given
  11828.     autogenerated) id
  11829.     '''
  11830.     return _core_.Window_NextControlId(*args, **kwargs)
  11831.  
  11832.  
  11833. def Window_PrevControlId(*args, **kwargs):
  11834.     '''
  11835.     Window_PrevControlId(int winid) -> int
  11836.  
  11837.     Get the id of the control preceding the one with the given
  11838.     autogenerated) id
  11839.     '''
  11840.     return _core_.Window_PrevControlId(*args, **kwargs)
  11841.  
  11842.  
  11843. def Window_FindFocus(*args, **kwargs):
  11844.     '''
  11845.     Window_FindFocus() -> Window
  11846.  
  11847.     Returns the window or control that currently has the keyboard focus,
  11848.     or None.
  11849.     '''
  11850.     return _core_.Window_FindFocus(*args, **kwargs)
  11851.  
  11852.  
  11853. def Window_GetCapture(*args, **kwargs):
  11854.     '''
  11855.     Window_GetCapture() -> Window
  11856.  
  11857.     Returns the window which currently captures the mouse or None
  11858.     '''
  11859.     return _core_.Window_GetCapture(*args, **kwargs)
  11860.  
  11861.  
  11862. def Window_GetClassDefaultAttributes(*args, **kwargs):
  11863.     """
  11864.     Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  11865.  
  11866.     Get the default attributes for this class.  This is useful if you want
  11867.     to use the same font or colour in your own control as in a standard
  11868.     control -- which is a much better idea than hard coding specific
  11869.     colours or fonts which might look completely out of place on the
  11870.     user's system, especially if it uses themes.
  11871.  
  11872.     The variant parameter is only relevant under Mac currently and is
  11873.     ignore under other platforms. Under Mac, it will change the size of
  11874.     the returned font. See `wx.Window.SetWindowVariant` for more about
  11875.     this.
  11876.     """
  11877.     return _core_.Window_GetClassDefaultAttributes(*args, **kwargs)
  11878.  
  11879.  
  11880. def DLG_PNT(win, point_or_x, y = None):
  11881.     '''
  11882.     Convenience function for converting a Point or (x,y) in
  11883.     dialog units to pixel units.
  11884.     '''
  11885.     if y is None:
  11886.         return win.ConvertDialogPointToPixels(point_or_x)
  11887.     else:
  11888.         return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y))
  11889.  
  11890.  
  11891. def DLG_SZE(win, size_width, height = None):
  11892.     '''
  11893.     Convenience function for converting a Size or (w,h) in
  11894.     dialog units to pixel units.
  11895.     '''
  11896.     if height is None:
  11897.         return win.ConvertDialogSizeToPixels(size_width)
  11898.     else:
  11899.         return win.ConvertDialogSizeToPixels(wx.Size(size_width, height))
  11900.  
  11901.  
  11902. def FindWindowById(*args, **kwargs):
  11903.     '''
  11904.     FindWindowById(long id, Window parent=None) -> Window
  11905.  
  11906.     Find the first window in the application with the given id. If parent
  11907.     is None, the search will start from all top-level frames and dialog
  11908.     boxes; if non-None, the search will be limited to the given window
  11909.     hierarchy. The search is recursive in both cases.
  11910.     '''
  11911.     return _core_.FindWindowById(*args, **kwargs)
  11912.  
  11913.  
  11914. def FindWindowByName(*args, **kwargs):
  11915.     '''
  11916.     FindWindowByName(String name, Window parent=None) -> Window
  11917.  
  11918.     Find a window by its name (as given in a window constructor or Create
  11919.     function call). If parent is None, the search will start from all
  11920.     top-level frames and dialog boxes; if non-None, the search will be
  11921.     limited to the given window hierarchy. The search is recursive in both
  11922.     cases.
  11923.  
  11924.     If no window with such name is found, wx.FindWindowByLabel is called.
  11925.     '''
  11926.     return _core_.FindWindowByName(*args, **kwargs)
  11927.  
  11928.  
  11929. def FindWindowByLabel(*args, **kwargs):
  11930.     '''
  11931.     FindWindowByLabel(String label, Window parent=None) -> Window
  11932.  
  11933.     Find a window by its label. Depending on the type of window, the label
  11934.     may be a window title or panel item label. If parent is None, the
  11935.     search will start from all top-level frames and dialog boxes; if
  11936.     non-None, the search will be limited to the given window
  11937.     hierarchy. The search is recursive in both cases.
  11938.     '''
  11939.     return _core_.FindWindowByLabel(*args, **kwargs)
  11940.  
  11941.  
  11942. def Window_FromHWND(*args, **kwargs):
  11943.     '''Window_FromHWND(Window parent, unsigned long _hWnd) -> Window'''
  11944.     return _core_.Window_FromHWND(*args, **kwargs)
  11945.  
  11946.  
  11947. def GetTopLevelWindows(*args, **kwargs):
  11948.     """
  11949.     GetTopLevelWindows() -> PyObject
  11950.  
  11951.     Returns a list of the the application's top-level windows, (frames,
  11952.     dialogs, etc.)  NOTE: Currently this is a copy of the list maintained
  11953.     by wxWidgets, and so it is only valid as long as no top-level windows
  11954.     are closed or new top-level windows are created.
  11955.  
  11956.     """
  11957.     return _core_.GetTopLevelWindows(*args, **kwargs)
  11958.  
  11959.  
  11960. class Validator(EvtHandler):
  11961.     '''Proxy of C++ Validator class'''
  11962.     
  11963.     def __repr__(self):
  11964.         return '<%s.%s; proxy of C++ wxValidator instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  11965.  
  11966.     
  11967.     def __init__(self, *args, **kwargs):
  11968.         '''__init__(self) -> Validator'''
  11969.         newobj = _core_.new_Validator(*args, **kwargs)
  11970.         self.this = newobj.this
  11971.         self.thisown = 1
  11972.         del newobj.thisown
  11973.         self._setOORInfo(self)
  11974.  
  11975.     
  11976.     def Clone(*args, **kwargs):
  11977.         '''Clone(self) -> Validator'''
  11978.         return _core_.Validator_Clone(*args, **kwargs)
  11979.  
  11980.     
  11981.     def Validate(*args, **kwargs):
  11982.         '''Validate(self, Window parent) -> bool'''
  11983.         return _core_.Validator_Validate(*args, **kwargs)
  11984.  
  11985.     
  11986.     def TransferToWindow(*args, **kwargs):
  11987.         '''TransferToWindow(self) -> bool'''
  11988.         return _core_.Validator_TransferToWindow(*args, **kwargs)
  11989.  
  11990.     
  11991.     def TransferFromWindow(*args, **kwargs):
  11992.         '''TransferFromWindow(self) -> bool'''
  11993.         return _core_.Validator_TransferFromWindow(*args, **kwargs)
  11994.  
  11995.     
  11996.     def GetWindow(*args, **kwargs):
  11997.         '''GetWindow(self) -> Window'''
  11998.         return _core_.Validator_GetWindow(*args, **kwargs)
  11999.  
  12000.     
  12001.     def SetWindow(*args, **kwargs):
  12002.         '''SetWindow(self, Window window)'''
  12003.         return _core_.Validator_SetWindow(*args, **kwargs)
  12004.  
  12005.     
  12006.     def IsSilent(*args, **kwargs):
  12007.         '''IsSilent() -> bool'''
  12008.         return _core_.Validator_IsSilent(*args, **kwargs)
  12009.  
  12010.     IsSilent = staticmethod(IsSilent)
  12011.     
  12012.     def SetBellOnError(*args, **kwargs):
  12013.         '''SetBellOnError(int doIt=True)'''
  12014.         return _core_.Validator_SetBellOnError(*args, **kwargs)
  12015.  
  12016.     SetBellOnError = staticmethod(SetBellOnError)
  12017.  
  12018.  
  12019. class ValidatorPtr(Validator):
  12020.     
  12021.     def __init__(self, this):
  12022.         self.this = this
  12023.         if not hasattr(self, 'thisown'):
  12024.             self.thisown = 0
  12025.         
  12026.         self.__class__ = Validator
  12027.  
  12028.  
  12029. _core_.Validator_swigregister(ValidatorPtr)
  12030.  
  12031. def Validator_IsSilent(*args, **kwargs):
  12032.     '''Validator_IsSilent() -> bool'''
  12033.     return _core_.Validator_IsSilent(*args, **kwargs)
  12034.  
  12035.  
  12036. def Validator_SetBellOnError(*args, **kwargs):
  12037.     '''Validator_SetBellOnError(int doIt=True)'''
  12038.     return _core_.Validator_SetBellOnError(*args, **kwargs)
  12039.  
  12040.  
  12041. class PyValidator(Validator):
  12042.     '''Proxy of C++ PyValidator class'''
  12043.     
  12044.     def __repr__(self):
  12045.         return '<%s.%s; proxy of C++ wxPyValidator instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12046.  
  12047.     
  12048.     def __init__(self, *args, **kwargs):
  12049.         '''__init__(self) -> PyValidator'''
  12050.         newobj = _core_.new_PyValidator(*args, **kwargs)
  12051.         self.this = newobj.this
  12052.         self.thisown = 1
  12053.         del newobj.thisown
  12054.         self._setCallbackInfo(self, PyValidator, 1)
  12055.         self._setOORInfo(self)
  12056.  
  12057.     
  12058.     def _setCallbackInfo(*args, **kwargs):
  12059.         '''_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)'''
  12060.         return _core_.PyValidator__setCallbackInfo(*args, **kwargs)
  12061.  
  12062.  
  12063.  
  12064. class PyValidatorPtr(PyValidator):
  12065.     
  12066.     def __init__(self, this):
  12067.         self.this = this
  12068.         if not hasattr(self, 'thisown'):
  12069.             self.thisown = 0
  12070.         
  12071.         self.__class__ = PyValidator
  12072.  
  12073.  
  12074. _core_.PyValidator_swigregister(PyValidatorPtr)
  12075.  
  12076. class Menu(EvtHandler):
  12077.     '''Proxy of C++ Menu class'''
  12078.     
  12079.     def __repr__(self):
  12080.         return '<%s.%s; proxy of C++ wxMenu instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12081.  
  12082.     
  12083.     def __init__(self, *args, **kwargs):
  12084.         '''__init__(self, String title=EmptyString, long style=0) -> Menu'''
  12085.         newobj = _core_.new_Menu(*args, **kwargs)
  12086.         self.this = newobj.this
  12087.         self.thisown = 1
  12088.         del newobj.thisown
  12089.         self._setOORInfo(self)
  12090.  
  12091.     
  12092.     def Append(*args, **kwargs):
  12093.         '''Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem'''
  12094.         return _core_.Menu_Append(*args, **kwargs)
  12095.  
  12096.     
  12097.     def AppendSeparator(*args, **kwargs):
  12098.         '''AppendSeparator(self) -> MenuItem'''
  12099.         return _core_.Menu_AppendSeparator(*args, **kwargs)
  12100.  
  12101.     
  12102.     def AppendCheckItem(*args, **kwargs):
  12103.         '''AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem'''
  12104.         return _core_.Menu_AppendCheckItem(*args, **kwargs)
  12105.  
  12106.     
  12107.     def AppendRadioItem(*args, **kwargs):
  12108.         '''AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem'''
  12109.         return _core_.Menu_AppendRadioItem(*args, **kwargs)
  12110.  
  12111.     
  12112.     def AppendMenu(*args, **kwargs):
  12113.         '''AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem'''
  12114.         return _core_.Menu_AppendMenu(*args, **kwargs)
  12115.  
  12116.     
  12117.     def AppendItem(*args, **kwargs):
  12118.         '''AppendItem(self, MenuItem item) -> MenuItem'''
  12119.         return _core_.Menu_AppendItem(*args, **kwargs)
  12120.  
  12121.     
  12122.     def Break(*args, **kwargs):
  12123.         '''Break(self)'''
  12124.         return _core_.Menu_Break(*args, **kwargs)
  12125.  
  12126.     
  12127.     def InsertItem(*args, **kwargs):
  12128.         '''InsertItem(self, size_t pos, MenuItem item) -> MenuItem'''
  12129.         return _core_.Menu_InsertItem(*args, **kwargs)
  12130.  
  12131.     
  12132.     def Insert(*args, **kwargs):
  12133.         '''
  12134.         Insert(self, size_t pos, int id, String text, String help=EmptyString, 
  12135.             int kind=ITEM_NORMAL) -> MenuItem
  12136.         '''
  12137.         return _core_.Menu_Insert(*args, **kwargs)
  12138.  
  12139.     
  12140.     def InsertSeparator(*args, **kwargs):
  12141.         '''InsertSeparator(self, size_t pos) -> MenuItem'''
  12142.         return _core_.Menu_InsertSeparator(*args, **kwargs)
  12143.  
  12144.     
  12145.     def InsertCheckItem(*args, **kwargs):
  12146.         '''InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem'''
  12147.         return _core_.Menu_InsertCheckItem(*args, **kwargs)
  12148.  
  12149.     
  12150.     def InsertRadioItem(*args, **kwargs):
  12151.         '''InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem'''
  12152.         return _core_.Menu_InsertRadioItem(*args, **kwargs)
  12153.  
  12154.     
  12155.     def InsertMenu(*args, **kwargs):
  12156.         '''InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem'''
  12157.         return _core_.Menu_InsertMenu(*args, **kwargs)
  12158.  
  12159.     
  12160.     def PrependItem(*args, **kwargs):
  12161.         '''PrependItem(self, MenuItem item) -> MenuItem'''
  12162.         return _core_.Menu_PrependItem(*args, **kwargs)
  12163.  
  12164.     
  12165.     def Prepend(*args, **kwargs):
  12166.         '''Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem'''
  12167.         return _core_.Menu_Prepend(*args, **kwargs)
  12168.  
  12169.     
  12170.     def PrependSeparator(*args, **kwargs):
  12171.         '''PrependSeparator(self) -> MenuItem'''
  12172.         return _core_.Menu_PrependSeparator(*args, **kwargs)
  12173.  
  12174.     
  12175.     def PrependCheckItem(*args, **kwargs):
  12176.         '''PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem'''
  12177.         return _core_.Menu_PrependCheckItem(*args, **kwargs)
  12178.  
  12179.     
  12180.     def PrependRadioItem(*args, **kwargs):
  12181.         '''PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem'''
  12182.         return _core_.Menu_PrependRadioItem(*args, **kwargs)
  12183.  
  12184.     
  12185.     def PrependMenu(*args, **kwargs):
  12186.         '''PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem'''
  12187.         return _core_.Menu_PrependMenu(*args, **kwargs)
  12188.  
  12189.     
  12190.     def Remove(*args, **kwargs):
  12191.         '''Remove(self, int id) -> MenuItem'''
  12192.         return _core_.Menu_Remove(*args, **kwargs)
  12193.  
  12194.     
  12195.     def RemoveItem(*args, **kwargs):
  12196.         '''RemoveItem(self, MenuItem item) -> MenuItem'''
  12197.         return _core_.Menu_RemoveItem(*args, **kwargs)
  12198.  
  12199.     
  12200.     def Delete(*args, **kwargs):
  12201.         '''Delete(self, int id) -> bool'''
  12202.         return _core_.Menu_Delete(*args, **kwargs)
  12203.  
  12204.     
  12205.     def DeleteItem(*args, **kwargs):
  12206.         '''DeleteItem(self, MenuItem item) -> bool'''
  12207.         return _core_.Menu_DeleteItem(*args, **kwargs)
  12208.  
  12209.     
  12210.     def Destroy(*args, **kwargs):
  12211.         '''
  12212.         Destroy(self)
  12213.  
  12214.         Deletes the C++ object this Python object is a proxy for.
  12215.         '''
  12216.         return _core_.Menu_Destroy(*args, **kwargs)
  12217.  
  12218.     
  12219.     def DestroyId(*args, **kwargs):
  12220.         '''
  12221.         DestroyId(self, int id) -> bool
  12222.  
  12223.         Deletes the C++ object this Python object is a proxy for.
  12224.         '''
  12225.         return _core_.Menu_DestroyId(*args, **kwargs)
  12226.  
  12227.     
  12228.     def DestroyItem(*args, **kwargs):
  12229.         '''
  12230.         DestroyItem(self, MenuItem item) -> bool
  12231.  
  12232.         Deletes the C++ object this Python object is a proxy for.
  12233.         '''
  12234.         return _core_.Menu_DestroyItem(*args, **kwargs)
  12235.  
  12236.     
  12237.     def GetMenuItemCount(*args, **kwargs):
  12238.         '''GetMenuItemCount(self) -> size_t'''
  12239.         return _core_.Menu_GetMenuItemCount(*args, **kwargs)
  12240.  
  12241.     
  12242.     def GetMenuItems(*args, **kwargs):
  12243.         '''GetMenuItems(self) -> PyObject'''
  12244.         return _core_.Menu_GetMenuItems(*args, **kwargs)
  12245.  
  12246.     
  12247.     def FindItem(*args, **kwargs):
  12248.         '''FindItem(self, String item) -> int'''
  12249.         return _core_.Menu_FindItem(*args, **kwargs)
  12250.  
  12251.     
  12252.     def FindItemById(*args, **kwargs):
  12253.         '''FindItemById(self, int id) -> MenuItem'''
  12254.         return _core_.Menu_FindItemById(*args, **kwargs)
  12255.  
  12256.     
  12257.     def FindItemByPosition(*args, **kwargs):
  12258.         '''FindItemByPosition(self, size_t position) -> MenuItem'''
  12259.         return _core_.Menu_FindItemByPosition(*args, **kwargs)
  12260.  
  12261.     
  12262.     def Enable(*args, **kwargs):
  12263.         '''Enable(self, int id, bool enable)'''
  12264.         return _core_.Menu_Enable(*args, **kwargs)
  12265.  
  12266.     
  12267.     def IsEnabled(*args, **kwargs):
  12268.         '''IsEnabled(self, int id) -> bool'''
  12269.         return _core_.Menu_IsEnabled(*args, **kwargs)
  12270.  
  12271.     
  12272.     def Check(*args, **kwargs):
  12273.         '''Check(self, int id, bool check)'''
  12274.         return _core_.Menu_Check(*args, **kwargs)
  12275.  
  12276.     
  12277.     def IsChecked(*args, **kwargs):
  12278.         '''IsChecked(self, int id) -> bool'''
  12279.         return _core_.Menu_IsChecked(*args, **kwargs)
  12280.  
  12281.     
  12282.     def SetLabel(*args, **kwargs):
  12283.         '''SetLabel(self, int id, String label)'''
  12284.         return _core_.Menu_SetLabel(*args, **kwargs)
  12285.  
  12286.     
  12287.     def GetLabel(*args, **kwargs):
  12288.         '''GetLabel(self, int id) -> String'''
  12289.         return _core_.Menu_GetLabel(*args, **kwargs)
  12290.  
  12291.     
  12292.     def SetHelpString(*args, **kwargs):
  12293.         '''SetHelpString(self, int id, String helpString)'''
  12294.         return _core_.Menu_SetHelpString(*args, **kwargs)
  12295.  
  12296.     
  12297.     def GetHelpString(*args, **kwargs):
  12298.         '''GetHelpString(self, int id) -> String'''
  12299.         return _core_.Menu_GetHelpString(*args, **kwargs)
  12300.  
  12301.     
  12302.     def SetTitle(*args, **kwargs):
  12303.         '''SetTitle(self, String title)'''
  12304.         return _core_.Menu_SetTitle(*args, **kwargs)
  12305.  
  12306.     
  12307.     def GetTitle(*args, **kwargs):
  12308.         '''GetTitle(self) -> String'''
  12309.         return _core_.Menu_GetTitle(*args, **kwargs)
  12310.  
  12311.     
  12312.     def SetEventHandler(*args, **kwargs):
  12313.         '''SetEventHandler(self, EvtHandler handler)'''
  12314.         return _core_.Menu_SetEventHandler(*args, **kwargs)
  12315.  
  12316.     
  12317.     def GetEventHandler(*args, **kwargs):
  12318.         '''GetEventHandler(self) -> EvtHandler'''
  12319.         return _core_.Menu_GetEventHandler(*args, **kwargs)
  12320.  
  12321.     
  12322.     def SetInvokingWindow(*args, **kwargs):
  12323.         '''SetInvokingWindow(self, Window win)'''
  12324.         return _core_.Menu_SetInvokingWindow(*args, **kwargs)
  12325.  
  12326.     
  12327.     def GetInvokingWindow(*args, **kwargs):
  12328.         '''GetInvokingWindow(self) -> Window'''
  12329.         return _core_.Menu_GetInvokingWindow(*args, **kwargs)
  12330.  
  12331.     
  12332.     def GetStyle(*args, **kwargs):
  12333.         '''GetStyle(self) -> long'''
  12334.         return _core_.Menu_GetStyle(*args, **kwargs)
  12335.  
  12336.     
  12337.     def UpdateUI(*args, **kwargs):
  12338.         '''UpdateUI(self, EvtHandler source=None)'''
  12339.         return _core_.Menu_UpdateUI(*args, **kwargs)
  12340.  
  12341.     
  12342.     def GetMenuBar(*args, **kwargs):
  12343.         '''GetMenuBar(self) -> MenuBar'''
  12344.         return _core_.Menu_GetMenuBar(*args, **kwargs)
  12345.  
  12346.     
  12347.     def Attach(*args, **kwargs):
  12348.         '''Attach(self, wxMenuBarBase menubar)'''
  12349.         return _core_.Menu_Attach(*args, **kwargs)
  12350.  
  12351.     
  12352.     def Detach(*args, **kwargs):
  12353.         '''Detach(self)'''
  12354.         return _core_.Menu_Detach(*args, **kwargs)
  12355.  
  12356.     
  12357.     def IsAttached(*args, **kwargs):
  12358.         '''IsAttached(self) -> bool'''
  12359.         return _core_.Menu_IsAttached(*args, **kwargs)
  12360.  
  12361.     
  12362.     def SetParent(*args, **kwargs):
  12363.         '''SetParent(self, Menu parent)'''
  12364.         return _core_.Menu_SetParent(*args, **kwargs)
  12365.  
  12366.     
  12367.     def GetParent(*args, **kwargs):
  12368.         '''GetParent(self) -> Menu'''
  12369.         return _core_.Menu_GetParent(*args, **kwargs)
  12370.  
  12371.  
  12372.  
  12373. class MenuPtr(Menu):
  12374.     
  12375.     def __init__(self, this):
  12376.         self.this = this
  12377.         if not hasattr(self, 'thisown'):
  12378.             self.thisown = 0
  12379.         
  12380.         self.__class__ = Menu
  12381.  
  12382.  
  12383. _core_.Menu_swigregister(MenuPtr)
  12384. DefaultValidator = cvar.DefaultValidator
  12385.  
  12386. class MenuBar(Window):
  12387.     '''Proxy of C++ MenuBar class'''
  12388.     
  12389.     def __repr__(self):
  12390.         return '<%s.%s; proxy of C++ wxMenuBar instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12391.  
  12392.     
  12393.     def __init__(self, *args, **kwargs):
  12394.         '''__init__(self, long style=0) -> MenuBar'''
  12395.         newobj = _core_.new_MenuBar(*args, **kwargs)
  12396.         self.this = newobj.this
  12397.         self.thisown = 1
  12398.         del newobj.thisown
  12399.         self._setOORInfo(self)
  12400.  
  12401.     
  12402.     def Append(*args, **kwargs):
  12403.         '''Append(self, Menu menu, String title) -> bool'''
  12404.         return _core_.MenuBar_Append(*args, **kwargs)
  12405.  
  12406.     
  12407.     def Insert(*args, **kwargs):
  12408.         '''Insert(self, size_t pos, Menu menu, String title) -> bool'''
  12409.         return _core_.MenuBar_Insert(*args, **kwargs)
  12410.  
  12411.     
  12412.     def GetMenuCount(*args, **kwargs):
  12413.         '''GetMenuCount(self) -> size_t'''
  12414.         return _core_.MenuBar_GetMenuCount(*args, **kwargs)
  12415.  
  12416.     
  12417.     def GetMenu(*args, **kwargs):
  12418.         '''GetMenu(self, size_t pos) -> Menu'''
  12419.         return _core_.MenuBar_GetMenu(*args, **kwargs)
  12420.  
  12421.     
  12422.     def Replace(*args, **kwargs):
  12423.         '''Replace(self, size_t pos, Menu menu, String title) -> Menu'''
  12424.         return _core_.MenuBar_Replace(*args, **kwargs)
  12425.  
  12426.     
  12427.     def Remove(*args, **kwargs):
  12428.         '''Remove(self, size_t pos) -> Menu'''
  12429.         return _core_.MenuBar_Remove(*args, **kwargs)
  12430.  
  12431.     
  12432.     def EnableTop(*args, **kwargs):
  12433.         '''EnableTop(self, size_t pos, bool enable)'''
  12434.         return _core_.MenuBar_EnableTop(*args, **kwargs)
  12435.  
  12436.     
  12437.     def IsEnabledTop(*args, **kwargs):
  12438.         '''IsEnabledTop(self, size_t pos) -> bool'''
  12439.         return _core_.MenuBar_IsEnabledTop(*args, **kwargs)
  12440.  
  12441.     
  12442.     def SetLabelTop(*args, **kwargs):
  12443.         '''SetLabelTop(self, size_t pos, String label)'''
  12444.         return _core_.MenuBar_SetLabelTop(*args, **kwargs)
  12445.  
  12446.     
  12447.     def GetLabelTop(*args, **kwargs):
  12448.         '''GetLabelTop(self, size_t pos) -> String'''
  12449.         return _core_.MenuBar_GetLabelTop(*args, **kwargs)
  12450.  
  12451.     
  12452.     def FindMenuItem(*args, **kwargs):
  12453.         '''FindMenuItem(self, String menu, String item) -> int'''
  12454.         return _core_.MenuBar_FindMenuItem(*args, **kwargs)
  12455.  
  12456.     
  12457.     def FindItemById(*args, **kwargs):
  12458.         '''FindItemById(self, int id) -> MenuItem'''
  12459.         return _core_.MenuBar_FindItemById(*args, **kwargs)
  12460.  
  12461.     
  12462.     def FindMenu(*args, **kwargs):
  12463.         '''FindMenu(self, String title) -> int'''
  12464.         return _core_.MenuBar_FindMenu(*args, **kwargs)
  12465.  
  12466.     
  12467.     def Enable(*args, **kwargs):
  12468.         '''Enable(self, int id, bool enable)'''
  12469.         return _core_.MenuBar_Enable(*args, **kwargs)
  12470.  
  12471.     
  12472.     def Check(*args, **kwargs):
  12473.         '''Check(self, int id, bool check)'''
  12474.         return _core_.MenuBar_Check(*args, **kwargs)
  12475.  
  12476.     
  12477.     def IsChecked(*args, **kwargs):
  12478.         '''IsChecked(self, int id) -> bool'''
  12479.         return _core_.MenuBar_IsChecked(*args, **kwargs)
  12480.  
  12481.     
  12482.     def IsEnabled(*args, **kwargs):
  12483.         '''IsEnabled(self, int id) -> bool'''
  12484.         return _core_.MenuBar_IsEnabled(*args, **kwargs)
  12485.  
  12486.     
  12487.     def SetLabel(*args, **kwargs):
  12488.         '''SetLabel(self, int id, String label)'''
  12489.         return _core_.MenuBar_SetLabel(*args, **kwargs)
  12490.  
  12491.     
  12492.     def GetLabel(*args, **kwargs):
  12493.         '''GetLabel(self, int id) -> String'''
  12494.         return _core_.MenuBar_GetLabel(*args, **kwargs)
  12495.  
  12496.     
  12497.     def SetHelpString(*args, **kwargs):
  12498.         '''SetHelpString(self, int id, String helpString)'''
  12499.         return _core_.MenuBar_SetHelpString(*args, **kwargs)
  12500.  
  12501.     
  12502.     def GetHelpString(*args, **kwargs):
  12503.         '''GetHelpString(self, int id) -> String'''
  12504.         return _core_.MenuBar_GetHelpString(*args, **kwargs)
  12505.  
  12506.     
  12507.     def GetFrame(*args, **kwargs):
  12508.         '''GetFrame(self) -> wxFrame'''
  12509.         return _core_.MenuBar_GetFrame(*args, **kwargs)
  12510.  
  12511.     
  12512.     def IsAttached(*args, **kwargs):
  12513.         '''IsAttached(self) -> bool'''
  12514.         return _core_.MenuBar_IsAttached(*args, **kwargs)
  12515.  
  12516.     
  12517.     def Attach(*args, **kwargs):
  12518.         '''Attach(self, wxFrame frame)'''
  12519.         return _core_.MenuBar_Attach(*args, **kwargs)
  12520.  
  12521.     
  12522.     def Detach(*args, **kwargs):
  12523.         '''Detach(self)'''
  12524.         return _core_.MenuBar_Detach(*args, **kwargs)
  12525.  
  12526.     
  12527.     def SetAutoWindowMenu(*args, **kwargs):
  12528.         '''SetAutoWindowMenu(bool enable)'''
  12529.         return _core_.MenuBar_SetAutoWindowMenu(*args, **kwargs)
  12530.  
  12531.     SetAutoWindowMenu = staticmethod(SetAutoWindowMenu)
  12532.     
  12533.     def GetAutoWindowMenu(*args, **kwargs):
  12534.         '''GetAutoWindowMenu() -> bool'''
  12535.         return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs)
  12536.  
  12537.     GetAutoWindowMenu = staticmethod(GetAutoWindowMenu)
  12538.  
  12539.  
  12540. class MenuBarPtr(MenuBar):
  12541.     
  12542.     def __init__(self, this):
  12543.         self.this = this
  12544.         if not hasattr(self, 'thisown'):
  12545.             self.thisown = 0
  12546.         
  12547.         self.__class__ = MenuBar
  12548.  
  12549.  
  12550. _core_.MenuBar_swigregister(MenuBarPtr)
  12551.  
  12552. def MenuBar_SetAutoWindowMenu(*args, **kwargs):
  12553.     '''MenuBar_SetAutoWindowMenu(bool enable)'''
  12554.     return _core_.MenuBar_SetAutoWindowMenu(*args, **kwargs)
  12555.  
  12556.  
  12557. def MenuBar_GetAutoWindowMenu(*args, **kwargs):
  12558.     '''MenuBar_GetAutoWindowMenu() -> bool'''
  12559.     return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs)
  12560.  
  12561.  
  12562. class MenuItem(Object):
  12563.     '''Proxy of C++ MenuItem class'''
  12564.     
  12565.     def __repr__(self):
  12566.         return '<%s.%s; proxy of C++ wxMenuItem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12567.  
  12568.     
  12569.     def __init__(self, *args, **kwargs):
  12570.         '''
  12571.         __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString, 
  12572.             String help=EmptyString, int kind=ITEM_NORMAL, 
  12573.             Menu subMenu=None) -> MenuItem
  12574.         '''
  12575.         newobj = _core_.new_MenuItem(*args, **kwargs)
  12576.         self.this = newobj.this
  12577.         self.thisown = 1
  12578.         del newobj.thisown
  12579.  
  12580.     
  12581.     def GetMenu(*args, **kwargs):
  12582.         '''GetMenu(self) -> Menu'''
  12583.         return _core_.MenuItem_GetMenu(*args, **kwargs)
  12584.  
  12585.     
  12586.     def SetMenu(*args, **kwargs):
  12587.         '''SetMenu(self, Menu menu)'''
  12588.         return _core_.MenuItem_SetMenu(*args, **kwargs)
  12589.  
  12590.     
  12591.     def SetId(*args, **kwargs):
  12592.         '''SetId(self, int id)'''
  12593.         return _core_.MenuItem_SetId(*args, **kwargs)
  12594.  
  12595.     
  12596.     def GetId(*args, **kwargs):
  12597.         '''GetId(self) -> int'''
  12598.         return _core_.MenuItem_GetId(*args, **kwargs)
  12599.  
  12600.     
  12601.     def IsSeparator(*args, **kwargs):
  12602.         '''IsSeparator(self) -> bool'''
  12603.         return _core_.MenuItem_IsSeparator(*args, **kwargs)
  12604.  
  12605.     
  12606.     def SetText(*args, **kwargs):
  12607.         '''SetText(self, String str)'''
  12608.         return _core_.MenuItem_SetText(*args, **kwargs)
  12609.  
  12610.     
  12611.     def GetLabel(*args, **kwargs):
  12612.         '''GetLabel(self) -> String'''
  12613.         return _core_.MenuItem_GetLabel(*args, **kwargs)
  12614.  
  12615.     
  12616.     def GetText(*args, **kwargs):
  12617.         '''GetText(self) -> String'''
  12618.         return _core_.MenuItem_GetText(*args, **kwargs)
  12619.  
  12620.     
  12621.     def GetLabelFromText(*args, **kwargs):
  12622.         '''GetLabelFromText(String text) -> String'''
  12623.         return _core_.MenuItem_GetLabelFromText(*args, **kwargs)
  12624.  
  12625.     GetLabelFromText = staticmethod(GetLabelFromText)
  12626.     
  12627.     def GetKind(*args, **kwargs):
  12628.         '''GetKind(self) -> int'''
  12629.         return _core_.MenuItem_GetKind(*args, **kwargs)
  12630.  
  12631.     
  12632.     def SetKind(*args, **kwargs):
  12633.         '''SetKind(self, int kind)'''
  12634.         return _core_.MenuItem_SetKind(*args, **kwargs)
  12635.  
  12636.     
  12637.     def SetCheckable(*args, **kwargs):
  12638.         '''SetCheckable(self, bool checkable)'''
  12639.         return _core_.MenuItem_SetCheckable(*args, **kwargs)
  12640.  
  12641.     
  12642.     def IsCheckable(*args, **kwargs):
  12643.         '''IsCheckable(self) -> bool'''
  12644.         return _core_.MenuItem_IsCheckable(*args, **kwargs)
  12645.  
  12646.     
  12647.     def IsSubMenu(*args, **kwargs):
  12648.         '''IsSubMenu(self) -> bool'''
  12649.         return _core_.MenuItem_IsSubMenu(*args, **kwargs)
  12650.  
  12651.     
  12652.     def SetSubMenu(*args, **kwargs):
  12653.         '''SetSubMenu(self, Menu menu)'''
  12654.         return _core_.MenuItem_SetSubMenu(*args, **kwargs)
  12655.  
  12656.     
  12657.     def GetSubMenu(*args, **kwargs):
  12658.         '''GetSubMenu(self) -> Menu'''
  12659.         return _core_.MenuItem_GetSubMenu(*args, **kwargs)
  12660.  
  12661.     
  12662.     def Enable(*args, **kwargs):
  12663.         '''Enable(self, bool enable=True)'''
  12664.         return _core_.MenuItem_Enable(*args, **kwargs)
  12665.  
  12666.     
  12667.     def IsEnabled(*args, **kwargs):
  12668.         '''IsEnabled(self) -> bool'''
  12669.         return _core_.MenuItem_IsEnabled(*args, **kwargs)
  12670.  
  12671.     
  12672.     def Check(*args, **kwargs):
  12673.         '''Check(self, bool check=True)'''
  12674.         return _core_.MenuItem_Check(*args, **kwargs)
  12675.  
  12676.     
  12677.     def IsChecked(*args, **kwargs):
  12678.         '''IsChecked(self) -> bool'''
  12679.         return _core_.MenuItem_IsChecked(*args, **kwargs)
  12680.  
  12681.     
  12682.     def Toggle(*args, **kwargs):
  12683.         '''Toggle(self)'''
  12684.         return _core_.MenuItem_Toggle(*args, **kwargs)
  12685.  
  12686.     
  12687.     def SetHelp(*args, **kwargs):
  12688.         '''SetHelp(self, String str)'''
  12689.         return _core_.MenuItem_SetHelp(*args, **kwargs)
  12690.  
  12691.     
  12692.     def GetHelp(*args, **kwargs):
  12693.         '''GetHelp(self) -> String'''
  12694.         return _core_.MenuItem_GetHelp(*args, **kwargs)
  12695.  
  12696.     
  12697.     def GetAccel(*args, **kwargs):
  12698.         '''GetAccel(self) -> AcceleratorEntry'''
  12699.         return _core_.MenuItem_GetAccel(*args, **kwargs)
  12700.  
  12701.     
  12702.     def SetAccel(*args, **kwargs):
  12703.         '''SetAccel(self, AcceleratorEntry accel)'''
  12704.         return _core_.MenuItem_SetAccel(*args, **kwargs)
  12705.  
  12706.     
  12707.     def SetBitmap(*args, **kwargs):
  12708.         '''SetBitmap(self, Bitmap bitmap)'''
  12709.         return _core_.MenuItem_SetBitmap(*args, **kwargs)
  12710.  
  12711.     
  12712.     def GetBitmap(*args, **kwargs):
  12713.         '''GetBitmap(self) -> Bitmap'''
  12714.         return _core_.MenuItem_GetBitmap(*args, **kwargs)
  12715.  
  12716.     
  12717.     def SetFont(*args, **kwargs):
  12718.         '''SetFont(self, Font font)'''
  12719.         return _core_.MenuItem_SetFont(*args, **kwargs)
  12720.  
  12721.     
  12722.     def GetFont(*args, **kwargs):
  12723.         '''GetFont(self) -> Font'''
  12724.         return _core_.MenuItem_GetFont(*args, **kwargs)
  12725.  
  12726.     
  12727.     def SetTextColour(*args, **kwargs):
  12728.         '''SetTextColour(self, Colour colText)'''
  12729.         return _core_.MenuItem_SetTextColour(*args, **kwargs)
  12730.  
  12731.     
  12732.     def GetTextColour(*args, **kwargs):
  12733.         '''GetTextColour(self) -> Colour'''
  12734.         return _core_.MenuItem_GetTextColour(*args, **kwargs)
  12735.  
  12736.     
  12737.     def SetBackgroundColour(*args, **kwargs):
  12738.         '''SetBackgroundColour(self, Colour colBack)'''
  12739.         return _core_.MenuItem_SetBackgroundColour(*args, **kwargs)
  12740.  
  12741.     
  12742.     def GetBackgroundColour(*args, **kwargs):
  12743.         '''GetBackgroundColour(self) -> Colour'''
  12744.         return _core_.MenuItem_GetBackgroundColour(*args, **kwargs)
  12745.  
  12746.     
  12747.     def SetBitmaps(*args, **kwargs):
  12748.         '''SetBitmaps(self, Bitmap bmpChecked, Bitmap bmpUnchecked=wxNullBitmap)'''
  12749.         return _core_.MenuItem_SetBitmaps(*args, **kwargs)
  12750.  
  12751.     
  12752.     def SetDisabledBitmap(*args, **kwargs):
  12753.         '''SetDisabledBitmap(self, Bitmap bmpDisabled)'''
  12754.         return _core_.MenuItem_SetDisabledBitmap(*args, **kwargs)
  12755.  
  12756.     
  12757.     def GetDisabledBitmap(*args, **kwargs):
  12758.         '''GetDisabledBitmap(self) -> Bitmap'''
  12759.         return _core_.MenuItem_GetDisabledBitmap(*args, **kwargs)
  12760.  
  12761.     
  12762.     def SetMarginWidth(*args, **kwargs):
  12763.         '''SetMarginWidth(self, int nWidth)'''
  12764.         return _core_.MenuItem_SetMarginWidth(*args, **kwargs)
  12765.  
  12766.     
  12767.     def GetMarginWidth(*args, **kwargs):
  12768.         '''GetMarginWidth(self) -> int'''
  12769.         return _core_.MenuItem_GetMarginWidth(*args, **kwargs)
  12770.  
  12771.     
  12772.     def GetDefaultMarginWidth(*args, **kwargs):
  12773.         '''GetDefaultMarginWidth() -> int'''
  12774.         return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs)
  12775.  
  12776.     GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth)
  12777.     
  12778.     def IsOwnerDrawn(*args, **kwargs):
  12779.         '''IsOwnerDrawn(self) -> bool'''
  12780.         return _core_.MenuItem_IsOwnerDrawn(*args, **kwargs)
  12781.  
  12782.     
  12783.     def SetOwnerDrawn(*args, **kwargs):
  12784.         '''SetOwnerDrawn(self, bool ownerDrawn=True)'''
  12785.         return _core_.MenuItem_SetOwnerDrawn(*args, **kwargs)
  12786.  
  12787.     
  12788.     def ResetOwnerDrawn(*args, **kwargs):
  12789.         '''ResetOwnerDrawn(self)'''
  12790.         return _core_.MenuItem_ResetOwnerDrawn(*args, **kwargs)
  12791.  
  12792.  
  12793.  
  12794. class MenuItemPtr(MenuItem):
  12795.     
  12796.     def __init__(self, this):
  12797.         self.this = this
  12798.         if not hasattr(self, 'thisown'):
  12799.             self.thisown = 0
  12800.         
  12801.         self.__class__ = MenuItem
  12802.  
  12803.  
  12804. _core_.MenuItem_swigregister(MenuItemPtr)
  12805.  
  12806. def MenuItem_GetLabelFromText(*args, **kwargs):
  12807.     '''MenuItem_GetLabelFromText(String text) -> String'''
  12808.     return _core_.MenuItem_GetLabelFromText(*args, **kwargs)
  12809.  
  12810.  
  12811. def MenuItem_GetDefaultMarginWidth(*args, **kwargs):
  12812.     '''MenuItem_GetDefaultMarginWidth() -> int'''
  12813.     return _core_.MenuItem_GetDefaultMarginWidth(*args, **kwargs)
  12814.  
  12815.  
  12816. class Control(Window):
  12817.     """
  12818.     This is the base class for a control or 'widget'.
  12819.  
  12820.     A control is generally a small window which processes user input
  12821.     and/or displays one or more item of data.
  12822.     """
  12823.     
  12824.     def __repr__(self):
  12825.         return '<%s.%s; proxy of C++ wxControl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12826.  
  12827.     
  12828.     def __init__(self, *args, **kwargs):
  12829.         """
  12830.         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  12831.             Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, 
  12832.             String name=ControlNameStr) -> Control
  12833.  
  12834.         Create a Control.  Normally you should only call this from a subclass'
  12835.         __init__ as a plain old wx.Control is not very useful.
  12836.         """
  12837.         newobj = _core_.new_Control(*args, **kwargs)
  12838.         self.this = newobj.this
  12839.         self.thisown = 1
  12840.         del newobj.thisown
  12841.         self._setOORInfo(self)
  12842.  
  12843.     
  12844.     def Create(*args, **kwargs):
  12845.         '''
  12846.         Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
  12847.             Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, 
  12848.             String name=ControlNameStr) -> bool
  12849.  
  12850.         Do the 2nd phase and create the GUI control.
  12851.         '''
  12852.         return _core_.Control_Create(*args, **kwargs)
  12853.  
  12854.     
  12855.     def Command(*args, **kwargs):
  12856.         '''
  12857.         Command(self, CommandEvent event)
  12858.  
  12859.         Simulates the effect of the user issuing a command to the item.
  12860.  
  12861.         :see: `wx.CommandEvent`
  12862.  
  12863.         '''
  12864.         return _core_.Control_Command(*args, **kwargs)
  12865.  
  12866.     
  12867.     def GetLabel(*args, **kwargs):
  12868.         """
  12869.         GetLabel(self) -> String
  12870.  
  12871.         Return a control's text.
  12872.         """
  12873.         return _core_.Control_GetLabel(*args, **kwargs)
  12874.  
  12875.     
  12876.     def SetLabel(*args, **kwargs):
  12877.         """
  12878.         SetLabel(self, String label)
  12879.  
  12880.         Sets the item's text.
  12881.         """
  12882.         return _core_.Control_SetLabel(*args, **kwargs)
  12883.  
  12884.     
  12885.     def GetClassDefaultAttributes(*args, **kwargs):
  12886.         """
  12887.         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  12888.  
  12889.         Get the default attributes for this class.  This is useful if you want
  12890.         to use the same font or colour in your own control as in a standard
  12891.         control -- which is a much better idea than hard coding specific
  12892.         colours or fonts which might look completely out of place on the
  12893.         user's system, especially if it uses themes.
  12894.  
  12895.         The variant parameter is only relevant under Mac currently and is
  12896.         ignore under other platforms. Under Mac, it will change the size of
  12897.         the returned font. See `wx.Window.SetWindowVariant` for more about
  12898.         this.
  12899.         """
  12900.         return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
  12901.  
  12902.     GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
  12903.  
  12904.  
  12905. class ControlPtr(Control):
  12906.     
  12907.     def __init__(self, this):
  12908.         self.this = this
  12909.         if not hasattr(self, 'thisown'):
  12910.             self.thisown = 0
  12911.         
  12912.         self.__class__ = Control
  12913.  
  12914.  
  12915. _core_.Control_swigregister(ControlPtr)
  12916. ControlNameStr = cvar.ControlNameStr
  12917.  
  12918. def PreControl(*args, **kwargs):
  12919.     '''
  12920.     PreControl() -> Control
  12921.  
  12922.     Precreate a Control control for 2-phase creation
  12923.     '''
  12924.     val = _core_.new_PreControl(*args, **kwargs)
  12925.     val.thisown = 1
  12926.     return val
  12927.  
  12928.  
  12929. def Control_GetClassDefaultAttributes(*args, **kwargs):
  12930.     """
  12931.     Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
  12932.  
  12933.     Get the default attributes for this class.  This is useful if you want
  12934.     to use the same font or colour in your own control as in a standard
  12935.     control -- which is a much better idea than hard coding specific
  12936.     colours or fonts which might look completely out of place on the
  12937.     user's system, especially if it uses themes.
  12938.  
  12939.     The variant parameter is only relevant under Mac currently and is
  12940.     ignore under other platforms. Under Mac, it will change the size of
  12941.     the returned font. See `wx.Window.SetWindowVariant` for more about
  12942.     this.
  12943.     """
  12944.     return _core_.Control_GetClassDefaultAttributes(*args, **kwargs)
  12945.  
  12946.  
  12947. class ItemContainer(object):
  12948.     """
  12949.     The wx.ItemContainer class defines an interface which is implemented
  12950.     by all controls which have string subitems, each of which may be
  12951.     selected, such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well
  12952.     as `wx.ComboBox` which implements an extended interface deriving from
  12953.     this one.
  12954.  
  12955.     It defines the methods for accessing the control's items and although
  12956.     each of the derived classes implements them differently, they still
  12957.     all conform to the same interface.
  12958.  
  12959.     The items in a wx.ItemContainer have (non empty) string labels and,
  12960.     optionally, client data associated with them.
  12961.  
  12962.     """
  12963.     
  12964.     def __init__(self):
  12965.         raise RuntimeError, 'No constructor defined'
  12966.  
  12967.     
  12968.     def __repr__(self):
  12969.         return '<%s.%s; proxy of C++ wxItemContainer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  12970.  
  12971.     
  12972.     def Append(*args, **kwargs):
  12973.         '''
  12974.         Append(self, String item, PyObject clientData=None) -> int
  12975.  
  12976.         Adds the item to the control, associating the given data with the item
  12977.         if not None.  The return value is the index of the newly added item
  12978.         which may be different from the last one if the control is sorted (e.g.
  12979.         has wx.LB_SORT or wx.CB_SORT style).
  12980.         '''
  12981.         return _core_.ItemContainer_Append(*args, **kwargs)
  12982.  
  12983.     
  12984.     def AppendItems(*args, **kwargs):
  12985.         '''
  12986.         AppendItems(self, List strings)
  12987.  
  12988.         Apend several items at once to the control.  Notice that calling this
  12989.         method may be much faster than appending the items one by one if you
  12990.         need to add a lot of items.
  12991.         '''
  12992.         return _core_.ItemContainer_AppendItems(*args, **kwargs)
  12993.  
  12994.     
  12995.     def Insert(*args, **kwargs):
  12996.         '''
  12997.         Insert(self, String item, int pos, PyObject clientData=None) -> int
  12998.  
  12999.         Insert an item into the control before the item at the ``pos`` index,
  13000.         optionally associating some data object with the item.
  13001.         '''
  13002.         return _core_.ItemContainer_Insert(*args, **kwargs)
  13003.  
  13004.     
  13005.     def Clear(*args, **kwargs):
  13006.         '''
  13007.         Clear(self)
  13008.  
  13009.         Removes all items from the control.
  13010.         '''
  13011.         return _core_.ItemContainer_Clear(*args, **kwargs)
  13012.  
  13013.     
  13014.     def Delete(*args, **kwargs):
  13015.         """
  13016.         Delete(self, int n)
  13017.  
  13018.         Deletes the item at the zero-based index 'n' from the control. Note
  13019.         that it is an error (signalled by a `wx.PyAssertionError` exception if
  13020.         enabled) to remove an item with the index negative or greater or equal
  13021.         than the number of items in the control.
  13022.         """
  13023.         return _core_.ItemContainer_Delete(*args, **kwargs)
  13024.  
  13025.     
  13026.     def GetClientData(*args, **kwargs):
  13027.         '''
  13028.         GetClientData(self, int n) -> PyObject
  13029.  
  13030.         Returns the client data associated with the given item, (if any.)
  13031.         '''
  13032.         return _core_.ItemContainer_GetClientData(*args, **kwargs)
  13033.  
  13034.     
  13035.     def SetClientData(*args, **kwargs):
  13036.         '''
  13037.         SetClientData(self, int n, PyObject clientData)
  13038.  
  13039.         Associate the given client data with the item at position n.
  13040.         '''
  13041.         return _core_.ItemContainer_SetClientData(*args, **kwargs)
  13042.  
  13043.     
  13044.     def GetCount(*args, **kwargs):
  13045.         '''
  13046.         GetCount(self) -> int
  13047.  
  13048.         Returns the number of items in the control.
  13049.         '''
  13050.         return _core_.ItemContainer_GetCount(*args, **kwargs)
  13051.  
  13052.     
  13053.     def IsEmpty(*args, **kwargs):
  13054.         '''
  13055.         IsEmpty(self) -> bool
  13056.  
  13057.         Returns True if the control is empty or False if it has some items.
  13058.         '''
  13059.         return _core_.ItemContainer_IsEmpty(*args, **kwargs)
  13060.  
  13061.     
  13062.     def GetString(*args, **kwargs):
  13063.         '''
  13064.         GetString(self, int n) -> String
  13065.  
  13066.         Returns the label of the item with the given index.
  13067.         '''
  13068.         return _core_.ItemContainer_GetString(*args, **kwargs)
  13069.  
  13070.     
  13071.     def GetStrings(*args, **kwargs):
  13072.         '''GetStrings(self) -> wxArrayString'''
  13073.         return _core_.ItemContainer_GetStrings(*args, **kwargs)
  13074.  
  13075.     
  13076.     def SetString(*args, **kwargs):
  13077.         '''
  13078.         SetString(self, int n, String s)
  13079.  
  13080.         Sets the label for the given item.
  13081.         '''
  13082.         return _core_.ItemContainer_SetString(*args, **kwargs)
  13083.  
  13084.     
  13085.     def FindString(*args, **kwargs):
  13086.         '''
  13087.         FindString(self, String s) -> int
  13088.  
  13089.         Finds an item whose label matches the given string.  Returns the
  13090.         zero-based position of the item, or ``wx.NOT_FOUND`` if the string was not
  13091.         found.
  13092.         '''
  13093.         return _core_.ItemContainer_FindString(*args, **kwargs)
  13094.  
  13095.     
  13096.     def SetSelection(*args, **kwargs):
  13097.         """
  13098.         SetSelection(self, int n)
  13099.  
  13100.         Sets the item at index 'n' to be the selected item.
  13101.         """
  13102.         return _core_.ItemContainer_SetSelection(*args, **kwargs)
  13103.  
  13104.     
  13105.     def GetSelection(*args, **kwargs):
  13106.         '''
  13107.         GetSelection(self) -> int
  13108.  
  13109.         Returns the index of the selected item or ``wx.NOT_FOUND`` if no item
  13110.         is selected.
  13111.         '''
  13112.         return _core_.ItemContainer_GetSelection(*args, **kwargs)
  13113.  
  13114.     
  13115.     def SetStringSelection(*args, **kwargs):
  13116.         '''SetStringSelection(self, String s) -> bool'''
  13117.         return _core_.ItemContainer_SetStringSelection(*args, **kwargs)
  13118.  
  13119.     
  13120.     def GetStringSelection(*args, **kwargs):
  13121.         '''
  13122.         GetStringSelection(self) -> String
  13123.  
  13124.         Returns the label of the selected item or an empty string if no item
  13125.         is selected.
  13126.         '''
  13127.         return _core_.ItemContainer_GetStringSelection(*args, **kwargs)
  13128.  
  13129.     
  13130.     def Select(*args, **kwargs):
  13131.         '''
  13132.         Select(self, int n)
  13133.  
  13134.         This is the same as `SetSelection` and exists only because it is
  13135.         slightly more natural for controls which support multiple selection.
  13136.         '''
  13137.         return _core_.ItemContainer_Select(*args, **kwargs)
  13138.  
  13139.  
  13140.  
  13141. class ItemContainerPtr(ItemContainer):
  13142.     
  13143.     def __init__(self, this):
  13144.         self.this = this
  13145.         if not hasattr(self, 'thisown'):
  13146.             self.thisown = 0
  13147.         
  13148.         self.__class__ = ItemContainer
  13149.  
  13150.  
  13151. _core_.ItemContainer_swigregister(ItemContainerPtr)
  13152.  
  13153. class ControlWithItems(Control, ItemContainer):
  13154.     '''
  13155.     wx.ControlWithItems combines the ``wx.ItemContainer`` class with the
  13156.     wx.Control class, and is used for the base class of various controls
  13157.     that have items.
  13158.     '''
  13159.     
  13160.     def __init__(self):
  13161.         raise RuntimeError, 'No constructor defined'
  13162.  
  13163.     
  13164.     def __repr__(self):
  13165.         return '<%s.%s; proxy of C++ wxControlWithItems instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  13166.  
  13167.  
  13168.  
  13169. class ControlWithItemsPtr(ControlWithItems):
  13170.     
  13171.     def __init__(self, this):
  13172.         self.this = this
  13173.         if not hasattr(self, 'thisown'):
  13174.             self.thisown = 0
  13175.         
  13176.         self.__class__ = ControlWithItems
  13177.  
  13178.  
  13179. _core_.ControlWithItems_swigregister(ControlWithItemsPtr)
  13180.  
  13181. class SizerItem(Object):
  13182.     '''
  13183.     The wx.SizerItem class is used to track the position, size and other
  13184.     attributes of each item managed by a `wx.Sizer`. In normal usage user
  13185.     code should never need to deal directly with a wx.SizerItem, but
  13186.     custom classes derived from `wx.PySizer` will probably need to use the
  13187.     collection of wx.SizerItems held by wx.Sizer when calculating layout.
  13188.  
  13189.     :see: `wx.Sizer`, `wx.GBSizerItem`
  13190.     '''
  13191.     
  13192.     def __repr__(self):
  13193.         return '<%s.%s; proxy of C++ wxSizerItem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  13194.  
  13195.     
  13196.     def __init__(self, *args, **kwargs):
  13197.         """
  13198.         __init__(self) -> SizerItem
  13199.  
  13200.         Constructs an empty wx.SizerItem.  Either a window, sizer or spacer
  13201.         size will need to be set before this item can be used in a Sizer.
  13202.  
  13203.         You will probably never need to create a wx.SizerItem directly as they
  13204.         are created automatically when the sizer's Add, Insert or Prepend
  13205.         methods are called.
  13206.  
  13207.         :see: `wx.SizerItemSpacer`, `wx.SizerItemWindow`, `wx.SizerItemSizer`
  13208.         """
  13209.         newobj = _core_.new_SizerItem(*args, **kwargs)
  13210.         self.this = newobj.this
  13211.         self.thisown = 1
  13212.         del newobj.thisown
  13213.  
  13214.     
  13215.     def DeleteWindows(*args, **kwargs):
  13216.         '''
  13217.         DeleteWindows(self)
  13218.  
  13219.         Destroy the window or the windows in a subsizer, depending on the type
  13220.         of item.
  13221.         '''
  13222.         return _core_.SizerItem_DeleteWindows(*args, **kwargs)
  13223.  
  13224.     
  13225.     def DetachSizer(*args, **kwargs):
  13226.         '''
  13227.         DetachSizer(self)
  13228.  
  13229.         Enable deleting the SizerItem without destroying the contained sizer.
  13230.         '''
  13231.         return _core_.SizerItem_DetachSizer(*args, **kwargs)
  13232.  
  13233.     
  13234.     def GetSize(*args, **kwargs):
  13235.         '''
  13236.         GetSize(self) -> Size
  13237.  
  13238.         Get the current size of the item, as set in the last Layout.
  13239.         '''
  13240.         return _core_.SizerItem_GetSize(*args, **kwargs)
  13241.  
  13242.     
  13243.     def CalcMin(*args, **kwargs):
  13244.         '''
  13245.         CalcMin(self) -> Size
  13246.  
  13247.         Calculates the minimum desired size for the item, including any space
  13248.         needed by borders.
  13249.         '''
  13250.         return _core_.SizerItem_CalcMin(*args, **kwargs)
  13251.  
  13252.     
  13253.     def SetDimension(*args, **kwargs):
  13254.         '''
  13255.         SetDimension(self, Point pos, Size size)
  13256.  
  13257.         Set the position and size of the space allocated for this item by the
  13258.         sizer, and adjust the position and size of the item (window or
  13259.         subsizer) to be within that space taking alignment and borders into
  13260.         account.
  13261.         '''
  13262.         return _core_.SizerItem_SetDimension(*args, **kwargs)
  13263.  
  13264.     
  13265.     def GetMinSize(*args, **kwargs):
  13266.         '''
  13267.         GetMinSize(self) -> Size
  13268.  
  13269.         Get the minimum size needed for the item.
  13270.         '''
  13271.         return _core_.SizerItem_GetMinSize(*args, **kwargs)
  13272.  
  13273.     
  13274.     def GetMinSizeWithBorder(*args, **kwargs):
  13275.         '''
  13276.         GetMinSizeWithBorder(self) -> Size
  13277.  
  13278.         Get the minimum size needed for the item with space for the borders
  13279.         added, if needed.
  13280.         '''
  13281.         return _core_.SizerItem_GetMinSizeWithBorder(*args, **kwargs)
  13282.  
  13283.     
  13284.     def SetInitSize(*args, **kwargs):
  13285.         '''SetInitSize(self, int x, int y)'''
  13286.         return _core_.SizerItem_SetInitSize(*args, **kwargs)
  13287.  
  13288.     
  13289.     def SetRatioWH(*args, **kwargs):
  13290.         '''
  13291.         SetRatioWH(self, int width, int height)
  13292.  
  13293.         Set the ratio item attribute.
  13294.         '''
  13295.         return _core_.SizerItem_SetRatioWH(*args, **kwargs)
  13296.  
  13297.     
  13298.     def SetRatioSize(*args, **kwargs):
  13299.         '''
  13300.         SetRatioSize(self, Size size)
  13301.  
  13302.         Set the ratio item attribute.
  13303.         '''
  13304.         return _core_.SizerItem_SetRatioSize(*args, **kwargs)
  13305.  
  13306.     
  13307.     def SetRatio(*args, **kwargs):
  13308.         '''
  13309.         SetRatio(self, float ratio)
  13310.  
  13311.         Set the ratio item attribute.
  13312.         '''
  13313.         return _core_.SizerItem_SetRatio(*args, **kwargs)
  13314.  
  13315.     
  13316.     def GetRatio(*args, **kwargs):
  13317.         '''
  13318.         GetRatio(self) -> float
  13319.  
  13320.         Set the ratio item attribute.
  13321.         '''
  13322.         return _core_.SizerItem_GetRatio(*args, **kwargs)
  13323.  
  13324.     
  13325.     def GetRect(*args, **kwargs):
  13326.         '''
  13327.         GetRect(self) -> Rect
  13328.  
  13329.         Returns the rectangle that the sizer item should occupy
  13330.         '''
  13331.         return _core_.SizerItem_GetRect(*args, **kwargs)
  13332.  
  13333.     
  13334.     def IsWindow(*args, **kwargs):
  13335.         '''
  13336.         IsWindow(self) -> bool
  13337.  
  13338.         Is this sizer item a window?
  13339.         '''
  13340.         return _core_.SizerItem_IsWindow(*args, **kwargs)
  13341.  
  13342.     
  13343.     def IsSizer(*args, **kwargs):
  13344.         '''
  13345.         IsSizer(self) -> bool
  13346.  
  13347.         Is this sizer item a subsizer?
  13348.         '''
  13349.         return _core_.SizerItem_IsSizer(*args, **kwargs)
  13350.  
  13351.     
  13352.     def IsSpacer(*args, **kwargs):
  13353.         '''
  13354.         IsSpacer(self) -> bool
  13355.  
  13356.         Is this sizer item a spacer?
  13357.         '''
  13358.         return _core_.SizerItem_IsSpacer(*args, **kwargs)
  13359.  
  13360.     
  13361.     def SetProportion(*args, **kwargs):
  13362.         '''
  13363.         SetProportion(self, int proportion)
  13364.  
  13365.         Set the proportion value for this item.
  13366.         '''
  13367.         return _core_.SizerItem_SetProportion(*args, **kwargs)
  13368.  
  13369.     
  13370.     def GetProportion(*args, **kwargs):
  13371.         '''
  13372.         GetProportion(self) -> int
  13373.  
  13374.         Get the proportion value for this item.
  13375.         '''
  13376.         return _core_.SizerItem_GetProportion(*args, **kwargs)
  13377.  
  13378.     SetOption = wx._deprecated(SetProportion, 'Please use `SetProportion` instead.')
  13379.     GetOption = wx._deprecated(GetProportion, 'Please use `GetProportion` instead.')
  13380.     
  13381.     def SetFlag(*args, **kwargs):
  13382.         '''
  13383.         SetFlag(self, int flag)
  13384.  
  13385.         Set the flag value for this item.
  13386.         '''
  13387.         return _core_.SizerItem_SetFlag(*args, **kwargs)
  13388.  
  13389.     
  13390.     def GetFlag(*args, **kwargs):
  13391.         '''
  13392.         GetFlag(self) -> int
  13393.  
  13394.         Get the flag value for this item.
  13395.         '''
  13396.         return _core_.SizerItem_GetFlag(*args, **kwargs)
  13397.  
  13398.     
  13399.     def SetBorder(*args, **kwargs):
  13400.         '''
  13401.         SetBorder(self, int border)
  13402.  
  13403.         Set the border value for this item.
  13404.         '''
  13405.         return _core_.SizerItem_SetBorder(*args, **kwargs)
  13406.  
  13407.     
  13408.     def GetBorder(*args, **kwargs):
  13409.         '''
  13410.         GetBorder(self) -> int
  13411.  
  13412.         Get the border value for this item.
  13413.         '''
  13414.         return _core_.SizerItem_GetBorder(*args, **kwargs)
  13415.  
  13416.     
  13417.     def GetWindow(*args, **kwargs):
  13418.         '''
  13419.         GetWindow(self) -> Window
  13420.  
  13421.         Get the window (if any) that is managed by this sizer item.
  13422.         '''
  13423.         return _core_.SizerItem_GetWindow(*args, **kwargs)
  13424.  
  13425.     
  13426.     def SetWindow(*args, **kwargs):
  13427.         '''
  13428.         SetWindow(self, Window window)
  13429.  
  13430.         Set the window to be managed by this sizer item.
  13431.         '''
  13432.         return _core_.SizerItem_SetWindow(*args, **kwargs)
  13433.  
  13434.     
  13435.     def GetSizer(*args, **kwargs):
  13436.         '''
  13437.         GetSizer(self) -> Sizer
  13438.  
  13439.         Get the subsizer (if any) that is managed by this sizer item.
  13440.         '''
  13441.         return _core_.SizerItem_GetSizer(*args, **kwargs)
  13442.  
  13443.     
  13444.     def SetSizer(*args, **kwargs):
  13445.         '''
  13446.         SetSizer(self, Sizer sizer)
  13447.  
  13448.         Set the subsizer to be managed by this sizer item.
  13449.         '''
  13450.         return _core_.SizerItem_SetSizer(*args, **kwargs)
  13451.  
  13452.     
  13453.     def GetSpacer(*args, **kwargs):
  13454.         '''
  13455.         GetSpacer(self) -> Size
  13456.  
  13457.         Get the size of the spacer managed by this sizer item.
  13458.         '''
  13459.         return _core_.SizerItem_GetSpacer(*args, **kwargs)
  13460.  
  13461.     
  13462.     def SetSpacer(*args, **kwargs):
  13463.         '''
  13464.         SetSpacer(self, Size size)
  13465.  
  13466.         Set the size of the spacer to be managed by this sizer item.
  13467.         '''
  13468.         return _core_.SizerItem_SetSpacer(*args, **kwargs)
  13469.  
  13470.     
  13471.     def Show(*args, **kwargs):
  13472.         '''
  13473.         Show(self, bool show)
  13474.  
  13475.         Set the show item attribute, which sizers use to determine if the item
  13476.         is to be made part of the layout or not. If the item is tracking a
  13477.         window then it is shown or hidden as needed.
  13478.         '''
  13479.         return _core_.SizerItem_Show(*args, **kwargs)
  13480.  
  13481.     
  13482.     def IsShown(*args, **kwargs):
  13483.         '''
  13484.         IsShown(self) -> bool
  13485.  
  13486.         Is the item to be shown in the layout?
  13487.         '''
  13488.         return _core_.SizerItem_IsShown(*args, **kwargs)
  13489.  
  13490.     
  13491.     def GetPosition(*args, **kwargs):
  13492.         '''
  13493.         GetPosition(self) -> Point
  13494.  
  13495.         Returns the current position of the item, as set in the last Layout.
  13496.         '''
  13497.         return _core_.SizerItem_GetPosition(*args, **kwargs)
  13498.  
  13499.     
  13500.     def GetUserData(*args, **kwargs):
  13501.         """
  13502.         GetUserData(self) -> PyObject
  13503.  
  13504.         Returns the userData associated with this sizer item, or None if there
  13505.         isn't any.
  13506.         """
  13507.         return _core_.SizerItem_GetUserData(*args, **kwargs)
  13508.  
  13509.     
  13510.     def SetUserData(*args, **kwargs):
  13511.         '''
  13512.         SetUserData(self, PyObject userData)
  13513.  
  13514.         Associate a Python object with this sizer item.
  13515.         '''
  13516.         return _core_.SizerItem_SetUserData(*args, **kwargs)
  13517.  
  13518.  
  13519.  
  13520. class SizerItemPtr(SizerItem):
  13521.     
  13522.     def __init__(self, this):
  13523.         self.this = this
  13524.         if not hasattr(self, 'thisown'):
  13525.             self.thisown = 0
  13526.         
  13527.         self.__class__ = SizerItem
  13528.  
  13529.  
  13530. _core_.SizerItem_swigregister(SizerItemPtr)
  13531.  
  13532. def SizerItemWindow(*args, **kwargs):
  13533.     '''
  13534.     SizerItemWindow(Window window, int proportion, int flag, int border, 
  13535.         PyObject userData=None) -> SizerItem
  13536.  
  13537.     Constructs a `wx.SizerItem` for tracking a window.
  13538.     '''
  13539.     val = _core_.new_SizerItemWindow(*args, **kwargs)
  13540.     val.thisown = 1
  13541.     return val
  13542.  
  13543.  
  13544. def SizerItemSpacer(*args, **kwargs):
  13545.     '''
  13546.     SizerItemSpacer(int width, int height, int proportion, int flag, int border, 
  13547.         PyObject userData=None) -> SizerItem
  13548.  
  13549.     Constructs a `wx.SizerItem` for tracking a spacer.
  13550.     '''
  13551.     val = _core_.new_SizerItemSpacer(*args, **kwargs)
  13552.     val.thisown = 1
  13553.     return val
  13554.  
  13555.  
  13556. def SizerItemSizer(*args, **kwargs):
  13557.     '''
  13558.     SizerItemSizer(Sizer sizer, int proportion, int flag, int border, 
  13559.         PyObject userData=None) -> SizerItem
  13560.  
  13561.     Constructs a `wx.SizerItem` for tracking a subsizer
  13562.     '''
  13563.     val = _core_.new_SizerItemSizer(*args, **kwargs)
  13564.     val.thisown = 1
  13565.     return val
  13566.  
  13567.  
  13568. class Sizer(Object):
  13569.     """
  13570.     wx.Sizer is the abstract base class used for laying out subwindows in
  13571.     a window.  You cannot use wx.Sizer directly; instead, you will have to
  13572.     use one of the sizer classes derived from it such as `wx.BoxSizer`,
  13573.     `wx.StaticBoxSizer`, `wx.NotebookSizer`, `wx.GridSizer`,  `wx.FlexGridSizer`
  13574.     and `wx.GridBagSizer`.
  13575.  
  13576.     The concept implemented by sizers in wxWidgets is closely related to
  13577.     layout tools in other GUI toolkits, such as Java's AWT, the GTK
  13578.     toolkit or the Qt toolkit. It is based upon the idea of the individual
  13579.     subwindows reporting their minimal required size and their ability to
  13580.     get stretched if the size of the parent window has changed. This will
  13581.     most often mean that the programmer does not set the original size of
  13582.     a dialog in the beginning, rather the dialog will assigned a sizer and
  13583.     this sizer will be queried about the recommended size. The sizer in
  13584.     turn will query its children, which can be normal windows or contorls,
  13585.     empty space or other sizers, so that a hierarchy of sizers can be
  13586.     constructed. Note that wxSizer does not derive from wxWindow and thus
  13587.     do not interfere with tab ordering and requires very little resources
  13588.     compared to a real window on screen.
  13589.  
  13590.     What makes sizers so well fitted for use in wxWidgets is the fact that
  13591.     every control reports its own minimal size and the algorithm can
  13592.     handle differences in font sizes or different window (dialog item)
  13593.     sizes on different platforms without problems. If for example the
  13594.     standard font as well as the overall design of Mac widgets requires
  13595.     more space than on Windows, then the initial size of a dialog using a
  13596.     sizer will automatically be bigger on Mac than on Windows.
  13597.     """
  13598.     
  13599.     def __init__(self):
  13600.         raise RuntimeError, 'No constructor defined'
  13601.  
  13602.     
  13603.     def __repr__(self):
  13604.         return '<%s.%s; proxy of C++ wxSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  13605.  
  13606.     
  13607.     def _setOORInfo(*args, **kwargs):
  13608.         '''_setOORInfo(self, PyObject _self)'''
  13609.         return _core_.Sizer__setOORInfo(*args, **kwargs)
  13610.  
  13611.     
  13612.     def Add(*args, **kwargs):
  13613.         '''
  13614.         Add(self, item, int proportion=0, int flag=0, int border=0,
  13615.             PyObject userData=None) -> wx.SizerItem
  13616.  
  13617.         Appends a child item to the sizer.
  13618.         '''
  13619.         return _core_.Sizer_Add(*args, **kwargs)
  13620.  
  13621.     
  13622.     def Insert(*args, **kwargs):
  13623.         '''
  13624.         Insert(self, int before, item, int proportion=0, int flag=0, int border=0,
  13625.             PyObject userData=None) -> wx.SizerItem
  13626.  
  13627.         Inserts a new item into the list of items managed by this sizer before
  13628.         the item at index *before*.  See `Add` for a description of the parameters.
  13629.         '''
  13630.         return _core_.Sizer_Insert(*args, **kwargs)
  13631.  
  13632.     
  13633.     def Prepend(*args, **kwargs):
  13634.         '''
  13635.         Prepend(self, item, int proportion=0, int flag=0, int border=0,
  13636.             PyObject userData=None) -> wx.SizerItem
  13637.  
  13638.         Adds a new item to the begining of the list of sizer items managed by
  13639.         this sizer.  See `Add` for a description of the parameters.
  13640.         '''
  13641.         return _core_.Sizer_Prepend(*args, **kwargs)
  13642.  
  13643.     
  13644.     def Remove(*args, **kwargs):
  13645.         '''
  13646.         Remove(self, item) -> bool
  13647.  
  13648.         Removes an item from the sizer and destroys it.  This method does not
  13649.         cause any layout or resizing to take place, call `Layout` to update
  13650.         the layout on screen after removing a child from the sizer.  The
  13651.         *item* parameter can be either a window, a sizer, or the zero-based
  13652.         index of an item to remove.  Returns True if the child item was found
  13653.         and removed.
  13654.         '''
  13655.         return _core_.Sizer_Remove(*args, **kwargs)
  13656.  
  13657.     
  13658.     def Detach(*args, **kwargs):
  13659.         '''
  13660.         Detach(self, item) -> bool
  13661.  
  13662.         Detaches an item from the sizer without destroying it.  This method
  13663.         does not cause any layout or resizing to take place, call `Layout` to
  13664.         do so.  The *item* parameter can be either a window, a sizer, or the
  13665.         zero-based index of the item to be detached.  Returns True if the child item
  13666.         was found and detached.
  13667.         '''
  13668.         return _core_.Sizer_Detach(*args, **kwargs)
  13669.  
  13670.     
  13671.     def GetItem(*args, **kwargs):
  13672.         '''
  13673.         GetItem(self, item) -> wx.SizerItem
  13674.  
  13675.         Returns the `wx.SizerItem` which holds the *item* given.  The *item*
  13676.         parameter can be either a window, a sizer, or the zero-based index of
  13677.         the item to be found.
  13678.         '''
  13679.         return _core_.Sizer_GetItem(*args, **kwargs)
  13680.  
  13681.     
  13682.     def _SetItemMinSize(*args, **kwargs):
  13683.         '''_SetItemMinSize(self, PyObject item, Size size)'''
  13684.         return _core_.Sizer__SetItemMinSize(*args, **kwargs)
  13685.  
  13686.     
  13687.     def SetItemMinSize(self, item, *args):
  13688.         '''
  13689.         SetItemMinSize(self, item, Size size)
  13690.  
  13691.         Sets the minimum size that will be allocated for an item in the sizer.
  13692.         The *item* parameter can be either a window, a sizer, or the
  13693.         zero-based index of the item.  If a window or sizer is given then it
  13694.         will be searched for recursivly in subsizers if neccessary.
  13695.         '''
  13696.         if len(args) == 2:
  13697.             return self._SetItemMinSize(item, args)
  13698.         else:
  13699.             return self._SetItemMinSize(item, args[0])
  13700.  
  13701.     
  13702.     def AddItem(*args, **kwargs):
  13703.         '''
  13704.         AddItem(self, SizerItem item)
  13705.  
  13706.         Adds a `wx.SizerItem` to the sizer.
  13707.         '''
  13708.         return _core_.Sizer_AddItem(*args, **kwargs)
  13709.  
  13710.     
  13711.     def InsertItem(*args, **kwargs):
  13712.         '''
  13713.         InsertItem(self, int index, SizerItem item)
  13714.  
  13715.         Inserts a `wx.SizerItem` to the sizer at the position given by *index*.
  13716.         '''
  13717.         return _core_.Sizer_InsertItem(*args, **kwargs)
  13718.  
  13719.     
  13720.     def PrependItem(*args, **kwargs):
  13721.         '''
  13722.         PrependItem(self, SizerItem item)
  13723.  
  13724.         Prepends a `wx.SizerItem` to the sizer.
  13725.         '''
  13726.         return _core_.Sizer_PrependItem(*args, **kwargs)
  13727.  
  13728.     
  13729.     def AddMany(self, items):
  13730.         '''
  13731.         AddMany is a convenience method for adding several items
  13732.         to a sizer at one time.  Simply pass it a list of tuples,
  13733.         where each tuple consists of the parameters that you
  13734.         would normally pass to the `Add` method.
  13735.         '''
  13736.         for item in items:
  13737.             if (type(item) != type(()) or len(item) == 2) and type(item[0]) == type(1):
  13738.                 item = (item,)
  13739.             
  13740.             self.Add(*item)
  13741.         
  13742.  
  13743.     
  13744.     def AddWindow(self, *args, **kw):
  13745.         '''Compatibility alias for `Add`.'''
  13746.         return self.Add(*args, **kw)
  13747.  
  13748.     
  13749.     def AddSizer(self, *args, **kw):
  13750.         '''Compatibility alias for `Add`.'''
  13751.         return self.Add(*args, **kw)
  13752.  
  13753.     
  13754.     def AddSpacer(self, *args, **kw):
  13755.         '''Compatibility alias for `Add`.'''
  13756.         return self.Add(*args, **kw)
  13757.  
  13758.     
  13759.     def PrependWindow(self, *args, **kw):
  13760.         '''Compatibility alias for `Prepend`.'''
  13761.         return self.Prepend(*args, **kw)
  13762.  
  13763.     
  13764.     def PrependSizer(self, *args, **kw):
  13765.         '''Compatibility alias for `Prepend`.'''
  13766.         return self.Prepend(*args, **kw)
  13767.  
  13768.     
  13769.     def PrependSpacer(self, *args, **kw):
  13770.         '''Compatibility alias for `Prepend`.'''
  13771.         return self.Prepend(*args, **kw)
  13772.  
  13773.     
  13774.     def InsertWindow(self, *args, **kw):
  13775.         '''Compatibility alias for `Insert`.'''
  13776.         return self.Insert(*args, **kw)
  13777.  
  13778.     
  13779.     def InsertSizer(self, *args, **kw):
  13780.         '''Compatibility alias for `Insert`.'''
  13781.         return self.Insert(*args, **kw)
  13782.  
  13783.     
  13784.     def InsertSpacer(self, *args, **kw):
  13785.         '''Compatibility alias for `Insert`.'''
  13786.         return self.Insert(*args, **kw)
  13787.  
  13788.     
  13789.     def RemoveWindow(self, *args, **kw):
  13790.         '''Compatibility alias for `Remove`.'''
  13791.         return self.Remove(*args, **kw)
  13792.  
  13793.     
  13794.     def RemoveSizer(self, *args, **kw):
  13795.         '''Compatibility alias for `Remove`.'''
  13796.         return self.Remove(*args, **kw)
  13797.  
  13798.     
  13799.     def RemovePos(self, *args, **kw):
  13800.         '''Compatibility alias for `Remove`.'''
  13801.         return self.Remove(*args, **kw)
  13802.  
  13803.     
  13804.     def SetDimension(*args, **kwargs):
  13805.         '''
  13806.         SetDimension(self, int x, int y, int width, int height)
  13807.  
  13808.         Call this to force the sizer to take the given dimension and thus
  13809.         force the items owned by the sizer to resize themselves according to
  13810.         the rules defined by the parameter in the `Add`, `Insert` or `Prepend`
  13811.         methods.
  13812.         '''
  13813.         return _core_.Sizer_SetDimension(*args, **kwargs)
  13814.  
  13815.     
  13816.     def SetMinSize(*args, **kwargs):
  13817.         '''
  13818.         SetMinSize(self, Size size)
  13819.  
  13820.         Call this to give the sizer a minimal size. Normally, the sizer will
  13821.         calculate its minimal size based purely on how much space its children
  13822.         need. After calling this method `GetMinSize` will return either the
  13823.         minimal size as requested by its children or the minimal size set
  13824.         here, depending on which is bigger.
  13825.         '''
  13826.         return _core_.Sizer_SetMinSize(*args, **kwargs)
  13827.  
  13828.     
  13829.     def GetSize(*args, **kwargs):
  13830.         '''
  13831.         GetSize(self) -> Size
  13832.  
  13833.         Returns the current size of the space managed by the sizer.
  13834.         '''
  13835.         return _core_.Sizer_GetSize(*args, **kwargs)
  13836.  
  13837.     
  13838.     def GetPosition(*args, **kwargs):
  13839.         """
  13840.         GetPosition(self) -> Point
  13841.  
  13842.         Returns the current position of the sizer's managed space.
  13843.         """
  13844.         return _core_.Sizer_GetPosition(*args, **kwargs)
  13845.  
  13846.     
  13847.     def GetMinSize(*args, **kwargs):
  13848.         '''
  13849.         GetMinSize(self) -> Size
  13850.  
  13851.         Returns the minimal size of the sizer. This is either the combined
  13852.         minimal size of all the children and their borders or the minimal size
  13853.         set by SetMinSize, depending on which is bigger.
  13854.         '''
  13855.         return _core_.Sizer_GetMinSize(*args, **kwargs)
  13856.  
  13857.     
  13858.     def GetSizeTuple(self):
  13859.         return self.GetSize().Get()
  13860.  
  13861.     
  13862.     def GetPositionTuple(self):
  13863.         return self.GetPosition().Get()
  13864.  
  13865.     
  13866.     def GetMinSizeTuple(self):
  13867.         return self.GetMinSize().Get()
  13868.  
  13869.     
  13870.     def RecalcSizes(*args, **kwargs):
  13871.         '''
  13872.         RecalcSizes(self)
  13873.  
  13874.         Using the sizes calculated by `CalcMin` reposition and resize all the
  13875.         items managed by this sizer.  You should not need to call this directly as
  13876.         it is called by `Layout`.
  13877.         '''
  13878.         return _core_.Sizer_RecalcSizes(*args, **kwargs)
  13879.  
  13880.     
  13881.     def CalcMin(*args, **kwargs):
  13882.         """
  13883.         CalcMin(self) -> Size
  13884.  
  13885.         This method is where the sizer will do the actual calculation of its
  13886.         children's minimal sizes.  You should not need to call this directly as
  13887.         it is called by `Layout`.
  13888.         """
  13889.         return _core_.Sizer_CalcMin(*args, **kwargs)
  13890.  
  13891.     
  13892.     def Layout(*args, **kwargs):
  13893.         """
  13894.         Layout(self)
  13895.  
  13896.         This method will force the recalculation and layout of the items
  13897.         controlled by the sizer using the current space allocated to the
  13898.         sizer.  Normally this is called automatically from the owning window's
  13899.         EVT_SIZE handler, but it is also useful to call it from user code when
  13900.         one of the items in a sizer change size, or items are added or
  13901.         removed.
  13902.         """
  13903.         return _core_.Sizer_Layout(*args, **kwargs)
  13904.  
  13905.     
  13906.     def Fit(*args, **kwargs):
  13907.         """
  13908.         Fit(self, Window window) -> Size
  13909.  
  13910.         Tell the sizer to resize the *window* to match the sizer's minimal
  13911.         size. This is commonly done in the constructor of the window itself in
  13912.         order to set its initial size to match the needs of the children as
  13913.         determined by the sizer.  Returns the new size.
  13914.  
  13915.         For a top level window this is the total window size, not the client size.
  13916.         """
  13917.         return _core_.Sizer_Fit(*args, **kwargs)
  13918.  
  13919.     
  13920.     def FitInside(*args, **kwargs):
  13921.         """
  13922.         FitInside(self, Window window)
  13923.  
  13924.         Tell the sizer to resize the *virtual size* of the *window* to match the
  13925.         sizer's minimal size. This will not alter the on screen size of the
  13926.         window, but may cause the addition/removal/alteration of scrollbars
  13927.         required to view the virtual area in windows which manage it.
  13928.  
  13929.         :see: `wx.ScrolledWindow.SetScrollbars`, `SetVirtualSizeHints`
  13930.  
  13931.         """
  13932.         return _core_.Sizer_FitInside(*args, **kwargs)
  13933.  
  13934.     
  13935.     def SetSizeHints(*args, **kwargs):
  13936.         """
  13937.         SetSizeHints(self, Window window)
  13938.  
  13939.         Tell the sizer to set (and `Fit`) the minimal size of the *window* to
  13940.         match the sizer's minimal size. This is commonly done in the
  13941.         constructor of the window itself if the window is resizable (as are
  13942.         many dialogs under Unix and frames on probably all platforms) in order
  13943.         to prevent the window from being sized smaller than the minimal size
  13944.         required by the sizer.
  13945.         """
  13946.         return _core_.Sizer_SetSizeHints(*args, **kwargs)
  13947.  
  13948.     
  13949.     def SetVirtualSizeHints(*args, **kwargs):
  13950.         """
  13951.         SetVirtualSizeHints(self, Window window)
  13952.  
  13953.         Tell the sizer to set the minimal size of the window virtual area to
  13954.         match the sizer's minimal size. For windows with managed scrollbars
  13955.         this will set them appropriately.
  13956.  
  13957.         :see: `wx.ScrolledWindow.SetScrollbars`
  13958.  
  13959.         """
  13960.         return _core_.Sizer_SetVirtualSizeHints(*args, **kwargs)
  13961.  
  13962.     
  13963.     def Clear(*args, **kwargs):
  13964.         '''
  13965.         Clear(self, bool deleteWindows=False)
  13966.  
  13967.         Clear all items from the sizer, optionally destroying the window items
  13968.         as well.
  13969.         '''
  13970.         return _core_.Sizer_Clear(*args, **kwargs)
  13971.  
  13972.     
  13973.     def DeleteWindows(*args, **kwargs):
  13974.         '''
  13975.         DeleteWindows(self)
  13976.  
  13977.         Destroy all windows managed by the sizer.
  13978.         '''
  13979.         return _core_.Sizer_DeleteWindows(*args, **kwargs)
  13980.  
  13981.     
  13982.     def GetChildren(*args, **kwargs):
  13983.         '''
  13984.         GetChildren(self) -> list
  13985.  
  13986.         Returns a list of all the `wx.SizerItem` objects managed by the sizer.
  13987.         '''
  13988.         return _core_.Sizer_GetChildren(*args, **kwargs)
  13989.  
  13990.     
  13991.     def Show(*args, **kwargs):
  13992.         '''
  13993.         Show(self, item, bool show=True, bool recursive=false) -> bool
  13994.  
  13995.         Shows or hides an item managed by the sizer.  To make a sizer item
  13996.         disappear or reappear, use Show followed by `Layout`.  The *item*
  13997.         parameter can be either a window, a sizer, or the zero-based index of
  13998.         the item.  Use the recursive parameter to show or hide an item in a
  13999.         subsizer.  Returns True if the item was found.
  14000.         '''
  14001.         return _core_.Sizer_Show(*args, **kwargs)
  14002.  
  14003.     
  14004.     def IsShown(*args, **kwargs):
  14005.         '''
  14006.         IsShown(self, item)
  14007.  
  14008.         Determines if the item is currently shown. sizer.  To make a sizer
  14009.         item disappear or reappear, use Show followed by `Layout`.  The *item*
  14010.         parameter can be either a window, a sizer, or the zero-based index of
  14011.         the item.
  14012.         '''
  14013.         return _core_.Sizer_IsShown(*args, **kwargs)
  14014.  
  14015.     
  14016.     def Hide(self, item, recursive = False):
  14017.         '''
  14018.         A convenience method for `Show` (item, False, recursive).
  14019.         '''
  14020.         return self.Show(item, False, recursive)
  14021.  
  14022.     
  14023.     def ShowItems(*args, **kwargs):
  14024.         '''
  14025.         ShowItems(self, bool show)
  14026.  
  14027.         Recursively call `wx.SizerItem.Show` on all sizer items.
  14028.         '''
  14029.         return _core_.Sizer_ShowItems(*args, **kwargs)
  14030.  
  14031.  
  14032.  
  14033. class SizerPtr(Sizer):
  14034.     
  14035.     def __init__(self, this):
  14036.         self.this = this
  14037.         if not hasattr(self, 'thisown'):
  14038.             self.thisown = 0
  14039.         
  14040.         self.__class__ = Sizer
  14041.  
  14042.  
  14043. _core_.Sizer_swigregister(SizerPtr)
  14044.  
  14045. class PySizer(Sizer):
  14046.     """
  14047.     wx.PySizer is a special version of `wx.Sizer` that has been
  14048.     instrumented to allow the C++ virtual methods to be overloaded in
  14049.     Python derived classes.  You would derive from this class if you are
  14050.     wanting to implement a custom sizer in Python code.  Simply implement
  14051.     `CalcMin` and `RecalcSizes` in the derived class and you're all set.
  14052.     For example::
  14053.  
  14054.         class MySizer(wx.PySizer):
  14055.              def __init__(self):
  14056.                  wx.PySizer.__init__(self)
  14057.  
  14058.              def CalcMin(self):
  14059.                  for item in self.GetChildren():
  14060.                       # calculate the total minimum width and height needed
  14061.                       # by all items in the sizer according to this sizer's
  14062.                       # layout algorithm.
  14063.                       ...
  14064.                  return wx.Size(width, height)
  14065.  
  14066.               def RecalcSizes(self):
  14067.                   # find the space allotted to this sizer
  14068.                   pos = self.GetPosition()
  14069.                   size = self.GetSize()
  14070.                   for item in self.GetChildren():
  14071.                       # Recalculate (if necessary) the position and size of
  14072.                       # each item and then call item.SetDimension to do the
  14073.                       # actual positioning and sizing of the items within the
  14074.                       # space alloted to this sizer.
  14075.                       ...
  14076.                       item.SetDimension(itemPos, itemSize)
  14077.  
  14078.  
  14079.     When `Layout` is called it first calls `CalcMin` followed by
  14080.     `RecalcSizes` so you can optimize a bit by saving the results of
  14081.     `CalcMin` and reusing them in `RecalcSizes`.
  14082.  
  14083.     :see: `wx.SizerItem`, `wx.Sizer.GetChildren`
  14084.  
  14085.  
  14086.     """
  14087.     
  14088.     def __repr__(self):
  14089.         return '<%s.%s; proxy of C++ wxPySizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14090.  
  14091.     
  14092.     def __init__(self, *args, **kwargs):
  14093.         '''
  14094.         __init__(self) -> PySizer
  14095.  
  14096.         Creates a wx.PySizer.  Must be called from the __init__ in the derived
  14097.         class.
  14098.         '''
  14099.         newobj = _core_.new_PySizer(*args, **kwargs)
  14100.         self.this = newobj.this
  14101.         self.thisown = 1
  14102.         del newobj.thisown
  14103.         self._setCallbackInfo(self, PySizer)
  14104.         self._setOORInfo(self)
  14105.  
  14106.     
  14107.     def _setCallbackInfo(*args, **kwargs):
  14108.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  14109.         return _core_.PySizer__setCallbackInfo(*args, **kwargs)
  14110.  
  14111.  
  14112.  
  14113. class PySizerPtr(PySizer):
  14114.     
  14115.     def __init__(self, this):
  14116.         self.this = this
  14117.         if not hasattr(self, 'thisown'):
  14118.             self.thisown = 0
  14119.         
  14120.         self.__class__ = PySizer
  14121.  
  14122.  
  14123. _core_.PySizer_swigregister(PySizerPtr)
  14124.  
  14125. class BoxSizer(Sizer):
  14126.     '''
  14127.     The basic idea behind a box sizer is that windows will most often be
  14128.     laid out in rather simple basic geometry, typically in a row or a
  14129.     column or nested hierarchies of either.  A wx.BoxSizer will lay out
  14130.     its items in a simple row or column, depending on the orientation
  14131.     parameter passed to the constructor.
  14132.     '''
  14133.     
  14134.     def __repr__(self):
  14135.         return '<%s.%s; proxy of C++ wxBoxSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14136.  
  14137.     
  14138.     def __init__(self, *args, **kwargs):
  14139.         '''
  14140.         __init__(self, int orient=HORIZONTAL) -> BoxSizer
  14141.  
  14142.         Constructor for a wx.BoxSizer. *orient* may be one of ``wx.VERTICAL``
  14143.         or ``wx.HORIZONTAL`` for creating either a column sizer or a row
  14144.         sizer.
  14145.         '''
  14146.         newobj = _core_.new_BoxSizer(*args, **kwargs)
  14147.         self.this = newobj.this
  14148.         self.thisown = 1
  14149.         del newobj.thisown
  14150.         self._setOORInfo(self)
  14151.  
  14152.     
  14153.     def GetOrientation(*args, **kwargs):
  14154.         '''
  14155.         GetOrientation(self) -> int
  14156.  
  14157.         Returns the current orientation of the sizer.
  14158.         '''
  14159.         return _core_.BoxSizer_GetOrientation(*args, **kwargs)
  14160.  
  14161.     
  14162.     def SetOrientation(*args, **kwargs):
  14163.         '''
  14164.         SetOrientation(self, int orient)
  14165.  
  14166.         Resets the orientation of the sizer.
  14167.         '''
  14168.         return _core_.BoxSizer_SetOrientation(*args, **kwargs)
  14169.  
  14170.  
  14171.  
  14172. class BoxSizerPtr(BoxSizer):
  14173.     
  14174.     def __init__(self, this):
  14175.         self.this = this
  14176.         if not hasattr(self, 'thisown'):
  14177.             self.thisown = 0
  14178.         
  14179.         self.__class__ = BoxSizer
  14180.  
  14181.  
  14182. _core_.BoxSizer_swigregister(BoxSizerPtr)
  14183.  
  14184. class StaticBoxSizer(BoxSizer):
  14185.     '''
  14186.     wx.StaticBoxSizer derives from and functions identically to the
  14187.     `wx.BoxSizer` and adds a `wx.StaticBox` around the items that the sizer
  14188.     manages.  Note that this static box must be created separately and
  14189.     passed to the sizer constructor.
  14190.     '''
  14191.     
  14192.     def __repr__(self):
  14193.         return '<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14194.  
  14195.     
  14196.     def __init__(self, *args, **kwargs):
  14197.         '''
  14198.         __init__(self, StaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer
  14199.  
  14200.         Constructor. It takes an associated static box and the orientation
  14201.         *orient* as parameters - orient can be either of ``wx.VERTICAL`` or
  14202.         ``wx.HORIZONTAL``.
  14203.         '''
  14204.         newobj = _core_.new_StaticBoxSizer(*args, **kwargs)
  14205.         self.this = newobj.this
  14206.         self.thisown = 1
  14207.         del newobj.thisown
  14208.         self._setOORInfo(self)
  14209.  
  14210.     
  14211.     def GetStaticBox(*args, **kwargs):
  14212.         '''
  14213.         GetStaticBox(self) -> StaticBox
  14214.  
  14215.         Returns the static box associated with this sizer.
  14216.         '''
  14217.         return _core_.StaticBoxSizer_GetStaticBox(*args, **kwargs)
  14218.  
  14219.  
  14220.  
  14221. class StaticBoxSizerPtr(StaticBoxSizer):
  14222.     
  14223.     def __init__(self, this):
  14224.         self.this = this
  14225.         if not hasattr(self, 'thisown'):
  14226.             self.thisown = 0
  14227.         
  14228.         self.__class__ = StaticBoxSizer
  14229.  
  14230.  
  14231. _core_.StaticBoxSizer_swigregister(StaticBoxSizerPtr)
  14232.  
  14233. class GridSizer(Sizer):
  14234.     '''
  14235.     A grid sizer is a sizer which lays out its children in a
  14236.     two-dimensional table with all cells having the same size.  In other
  14237.     words, the width of each cell within the grid is the width of the
  14238.     widest item added to the sizer and the height of each grid cell is the
  14239.     height of the tallest item.  An optional vertical and/or horizontal
  14240.     gap between items can also be specified (in pixels.)
  14241.  
  14242.     Items are placed in the cells of the grid in the order they are added,
  14243.     in row-major order.  In other words, the first row is filled first,
  14244.     then the second, and so on until all items have been added. (If
  14245.     neccessary, additional rows will be added as items are added.)  If you
  14246.     need to have greater control over the cells that items are placed in
  14247.     then use the `wx.GridBagSizer`.
  14248.  
  14249.     '''
  14250.     
  14251.     def __repr__(self):
  14252.         return '<%s.%s; proxy of C++ wxGridSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14253.  
  14254.     
  14255.     def __init__(self, *args, **kwargs):
  14256.         '''
  14257.         __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer
  14258.  
  14259.         Constructor for a wx.GridSizer. *rows* and *cols* determine the number
  14260.         of columns and rows in the sizer - if either of the parameters is
  14261.         zero, it will be calculated to from the total number of children in
  14262.         the sizer, thus making the sizer grow dynamically. *vgap* and *hgap*
  14263.         define extra space between all children.
  14264.         '''
  14265.         newobj = _core_.new_GridSizer(*args, **kwargs)
  14266.         self.this = newobj.this
  14267.         self.thisown = 1
  14268.         del newobj.thisown
  14269.         self._setOORInfo(self)
  14270.  
  14271.     
  14272.     def SetCols(*args, **kwargs):
  14273.         '''
  14274.         SetCols(self, int cols)
  14275.  
  14276.         Sets the number of columns in the sizer.
  14277.         '''
  14278.         return _core_.GridSizer_SetCols(*args, **kwargs)
  14279.  
  14280.     
  14281.     def SetRows(*args, **kwargs):
  14282.         '''
  14283.         SetRows(self, int rows)
  14284.  
  14285.         Sets the number of rows in the sizer.
  14286.         '''
  14287.         return _core_.GridSizer_SetRows(*args, **kwargs)
  14288.  
  14289.     
  14290.     def SetVGap(*args, **kwargs):
  14291.         '''
  14292.         SetVGap(self, int gap)
  14293.  
  14294.         Sets the vertical gap (in pixels) between the cells in the sizer.
  14295.         '''
  14296.         return _core_.GridSizer_SetVGap(*args, **kwargs)
  14297.  
  14298.     
  14299.     def SetHGap(*args, **kwargs):
  14300.         '''
  14301.         SetHGap(self, int gap)
  14302.  
  14303.         Sets the horizontal gap (in pixels) between cells in the sizer
  14304.         '''
  14305.         return _core_.GridSizer_SetHGap(*args, **kwargs)
  14306.  
  14307.     
  14308.     def GetCols(*args, **kwargs):
  14309.         '''
  14310.         GetCols(self) -> int
  14311.  
  14312.         Returns the number of columns in the sizer, as specified in the constructor.
  14313.         '''
  14314.         return _core_.GridSizer_GetCols(*args, **kwargs)
  14315.  
  14316.     
  14317.     def GetRows(*args, **kwargs):
  14318.         '''
  14319.         GetRows(self) -> int
  14320.  
  14321.         Returns the number of rows in the sizer, as specified in the constructor.
  14322.         '''
  14323.         return _core_.GridSizer_GetRows(*args, **kwargs)
  14324.  
  14325.     
  14326.     def GetVGap(*args, **kwargs):
  14327.         '''
  14328.         GetVGap(self) -> int
  14329.  
  14330.         Returns the vertical gap (in pixels) between the cells in the sizer.
  14331.         '''
  14332.         return _core_.GridSizer_GetVGap(*args, **kwargs)
  14333.  
  14334.     
  14335.     def GetHGap(*args, **kwargs):
  14336.         '''
  14337.         GetHGap(self) -> int
  14338.  
  14339.         Returns the horizontal gap (in pixels) between cells in the sizer.
  14340.         '''
  14341.         return _core_.GridSizer_GetHGap(*args, **kwargs)
  14342.  
  14343.     
  14344.     def CalcRowsCols(self):
  14345.         '''
  14346.         CalcRowsCols() -> (rows, cols)
  14347.  
  14348.         Calculates how many rows and columns will be in the sizer based
  14349.         on the current number of items and also the rows, cols specified
  14350.         in the constructor.
  14351.         '''
  14352.         nitems = len(self.GetChildren())
  14353.         rows = self.GetRows()
  14354.         cols = self.GetCols()
  14355.         if not rows != 0 and cols != 0:
  14356.             raise AssertionError, 'Grid sizer must have either rows or columns fixed'
  14357.         if cols != 0:
  14358.             rows = (nitems + cols - 1) / cols
  14359.         elif rows != 0:
  14360.             cols = (nitems + rows - 1) / rows
  14361.         
  14362.         return (rows, cols)
  14363.  
  14364.  
  14365.  
  14366. class GridSizerPtr(GridSizer):
  14367.     
  14368.     def __init__(self, this):
  14369.         self.this = this
  14370.         if not hasattr(self, 'thisown'):
  14371.             self.thisown = 0
  14372.         
  14373.         self.__class__ = GridSizer
  14374.  
  14375.  
  14376. _core_.GridSizer_swigregister(GridSizerPtr)
  14377. FLEX_GROWMODE_NONE = _core_.FLEX_GROWMODE_NONE
  14378. FLEX_GROWMODE_SPECIFIED = _core_.FLEX_GROWMODE_SPECIFIED
  14379. FLEX_GROWMODE_ALL = _core_.FLEX_GROWMODE_ALL
  14380.  
  14381. class FlexGridSizer(GridSizer):
  14382.     '''
  14383.     A flex grid sizer is a sizer which lays out its children in a
  14384.     two-dimensional table with all table cells in one row having the same
  14385.     height and all cells in one column having the same width, but all
  14386.     rows or all columns are not necessarily the same height or width as in
  14387.     the `wx.GridSizer`.
  14388.  
  14389.     wx.FlexGridSizer can also size items equally in one direction but
  14390.     unequally ("flexibly") in the other. If the sizer is only flexible
  14391.     in one direction (this can be changed using `SetFlexibleDirection`), it
  14392.     needs to be decided how the sizer should grow in the other ("non
  14393.     flexible") direction in order to fill the available space. The
  14394.     `SetNonFlexibleGrowMode` method serves this purpose.
  14395.  
  14396.  
  14397.     '''
  14398.     
  14399.     def __repr__(self):
  14400.         return '<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14401.  
  14402.     
  14403.     def __init__(self, *args, **kwargs):
  14404.         '''
  14405.         __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer
  14406.  
  14407.         Constructor for a wx.FlexGridSizer. *rows* and *cols* determine the
  14408.         number of columns and rows in the sizer - if either of the parameters
  14409.         is zero, it will be calculated to from the total number of children in
  14410.         the sizer, thus making the sizer grow dynamically. *vgap* and *hgap*
  14411.         define extra space between all children.
  14412.         '''
  14413.         newobj = _core_.new_FlexGridSizer(*args, **kwargs)
  14414.         self.this = newobj.this
  14415.         self.thisown = 1
  14416.         del newobj.thisown
  14417.         self._setOORInfo(self)
  14418.  
  14419.     
  14420.     def AddGrowableRow(*args, **kwargs):
  14421.         '''
  14422.         AddGrowableRow(self, size_t idx, int proportion=0)
  14423.  
  14424.         Specifies that row *idx* (starting from zero) should be grown if there
  14425.         is extra space available to the sizer.
  14426.  
  14427.         The *proportion* parameter has the same meaning as the stretch factor
  14428.         for the box sizers except that if all proportions are 0, then all
  14429.         columns are resized equally (instead of not being resized at all).
  14430.         '''
  14431.         return _core_.FlexGridSizer_AddGrowableRow(*args, **kwargs)
  14432.  
  14433.     
  14434.     def RemoveGrowableRow(*args, **kwargs):
  14435.         '''
  14436.         RemoveGrowableRow(self, size_t idx)
  14437.  
  14438.         Specifies that row *idx* is no longer growable.
  14439.         '''
  14440.         return _core_.FlexGridSizer_RemoveGrowableRow(*args, **kwargs)
  14441.  
  14442.     
  14443.     def AddGrowableCol(*args, **kwargs):
  14444.         '''
  14445.         AddGrowableCol(self, size_t idx, int proportion=0)
  14446.  
  14447.         Specifies that column *idx* (starting from zero) should be grown if
  14448.         there is extra space available to the sizer.
  14449.  
  14450.         The *proportion* parameter has the same meaning as the stretch factor
  14451.         for the box sizers except that if all proportions are 0, then all
  14452.         columns are resized equally (instead of not being resized at all).
  14453.         '''
  14454.         return _core_.FlexGridSizer_AddGrowableCol(*args, **kwargs)
  14455.  
  14456.     
  14457.     def RemoveGrowableCol(*args, **kwargs):
  14458.         '''
  14459.         RemoveGrowableCol(self, size_t idx)
  14460.  
  14461.         Specifies that column *idx* is no longer growable.
  14462.         '''
  14463.         return _core_.FlexGridSizer_RemoveGrowableCol(*args, **kwargs)
  14464.  
  14465.     
  14466.     def SetFlexibleDirection(*args, **kwargs):
  14467.         '''
  14468.         SetFlexibleDirection(self, int direction)
  14469.  
  14470.         Specifies whether the sizer should flexibly resize its columns, rows,
  14471.         or both. Argument *direction* can be one of the following values.  Any
  14472.         other value is ignored.
  14473.  
  14474.             ==============    =======================================
  14475.             wx.VERTICAL       Rows are flexibly sized.
  14476.             wx.HORIZONTAL     Columns are flexibly sized.
  14477.             wx.BOTH           Both rows and columns are flexibly sized
  14478.                               (this is the default value).
  14479.             ==============    =======================================
  14480.  
  14481.         Note that this method does not trigger relayout.
  14482.  
  14483.         '''
  14484.         return _core_.FlexGridSizer_SetFlexibleDirection(*args, **kwargs)
  14485.  
  14486.     
  14487.     def GetFlexibleDirection(*args, **kwargs):
  14488.         '''
  14489.         GetFlexibleDirection(self) -> int
  14490.  
  14491.         Returns a value that specifies whether the sizer
  14492.         flexibly resizes its columns, rows, or both (default).
  14493.  
  14494.         :see: `SetFlexibleDirection`
  14495.         '''
  14496.         return _core_.FlexGridSizer_GetFlexibleDirection(*args, **kwargs)
  14497.  
  14498.     
  14499.     def SetNonFlexibleGrowMode(*args, **kwargs):
  14500.         """
  14501.         SetNonFlexibleGrowMode(self, int mode)
  14502.  
  14503.         Specifies how the sizer should grow in the non-flexible direction if
  14504.         there is one (so `SetFlexibleDirection` must have been called
  14505.         previously). Argument *mode* can be one of the following values:
  14506.  
  14507.             ==========================  =================================================
  14508.             wx.FLEX_GROWMODE_NONE       Sizer doesn't grow in the non flexible direction.
  14509.             wx.FLEX_GROWMODE_SPECIFIED  Sizer honors growable columns/rows set with
  14510.                                         `AddGrowableCol` and `AddGrowableRow`. In this
  14511.                                         case equal sizing applies to minimum sizes of
  14512.                                         columns or rows (this is the default value).
  14513.             wx.FLEX_GROWMODE_ALL        Sizer equally stretches all columns or rows in
  14514.                                         the non flexible direction, whether they are
  14515.                                         growable or not in the flexbile direction.
  14516.             ==========================  =================================================
  14517.  
  14518.         Note that this method does not trigger relayout.
  14519.  
  14520.  
  14521.         """
  14522.         return _core_.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs)
  14523.  
  14524.     
  14525.     def GetNonFlexibleGrowMode(*args, **kwargs):
  14526.         '''
  14527.         GetNonFlexibleGrowMode(self) -> int
  14528.  
  14529.         Returns the value that specifies how the sizer grows in the
  14530.         non-flexible direction if there is one.
  14531.  
  14532.         :see: `SetNonFlexibleGrowMode`
  14533.         '''
  14534.         return _core_.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs)
  14535.  
  14536.     
  14537.     def GetRowHeights(*args, **kwargs):
  14538.         '''
  14539.         GetRowHeights(self) -> list
  14540.  
  14541.         Returns a list of integers representing the heights of each of the
  14542.         rows in the sizer.
  14543.         '''
  14544.         return _core_.FlexGridSizer_GetRowHeights(*args, **kwargs)
  14545.  
  14546.     
  14547.     def GetColWidths(*args, **kwargs):
  14548.         '''
  14549.         GetColWidths(self) -> list
  14550.  
  14551.         Returns a list of integers representing the widths of each of the
  14552.         columns in the sizer.
  14553.         '''
  14554.         return _core_.FlexGridSizer_GetColWidths(*args, **kwargs)
  14555.  
  14556.  
  14557.  
  14558. class FlexGridSizerPtr(FlexGridSizer):
  14559.     
  14560.     def __init__(self, this):
  14561.         self.this = this
  14562.         if not hasattr(self, 'thisown'):
  14563.             self.thisown = 0
  14564.         
  14565.         self.__class__ = FlexGridSizer
  14566.  
  14567.  
  14568. _core_.FlexGridSizer_swigregister(FlexGridSizerPtr)
  14569.  
  14570. class StdDialogButtonSizer(BoxSizer):
  14571.     """
  14572.     A special sizer that knows how to order and position standard buttons
  14573.     in order to conform to the current platform's standards.  You simply
  14574.     need to add each `wx.Button` to the sizer, and be sure to create the
  14575.     buttons using the standard ID's.  Then call `Realize` and the sizer
  14576.     will take care of the rest.
  14577.  
  14578.     """
  14579.     
  14580.     def __repr__(self):
  14581.         return '<%s.%s; proxy of C++ wxStdDialogButtonSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14582.  
  14583.     
  14584.     def __init__(self, *args, **kwargs):
  14585.         '''__init__(self) -> StdDialogButtonSizer'''
  14586.         newobj = _core_.new_StdDialogButtonSizer(*args, **kwargs)
  14587.         self.this = newobj.this
  14588.         self.thisown = 1
  14589.         del newobj.thisown
  14590.  
  14591.     
  14592.     def AddButton(*args, **kwargs):
  14593.         '''
  14594.         AddButton(self, wxButton button)
  14595.  
  14596.         Use this to add the buttons to this sizer.  Do not use the `Add`
  14597.         method in the base class.
  14598.         '''
  14599.         return _core_.StdDialogButtonSizer_AddButton(*args, **kwargs)
  14600.  
  14601.     
  14602.     def Realize(*args, **kwargs):
  14603.         '''
  14604.         Realize(self)
  14605.  
  14606.         This funciton needs to be called after all the buttons have been added
  14607.         to the sizer.  It will reorder them and position them in a platform
  14608.         specifc manner.
  14609.         '''
  14610.         return _core_.StdDialogButtonSizer_Realize(*args, **kwargs)
  14611.  
  14612.     
  14613.     def SetAffirmativeButton(*args, **kwargs):
  14614.         '''SetAffirmativeButton(self, wxButton button)'''
  14615.         return _core_.StdDialogButtonSizer_SetAffirmativeButton(*args, **kwargs)
  14616.  
  14617.     
  14618.     def SetNegativeButton(*args, **kwargs):
  14619.         '''SetNegativeButton(self, wxButton button)'''
  14620.         return _core_.StdDialogButtonSizer_SetNegativeButton(*args, **kwargs)
  14621.  
  14622.     
  14623.     def SetCancelButton(*args, **kwargs):
  14624.         '''SetCancelButton(self, wxButton button)'''
  14625.         return _core_.StdDialogButtonSizer_SetCancelButton(*args, **kwargs)
  14626.  
  14627.     
  14628.     def GetAffirmativeButton(*args, **kwargs):
  14629.         '''GetAffirmativeButton(self) -> wxButton'''
  14630.         return _core_.StdDialogButtonSizer_GetAffirmativeButton(*args, **kwargs)
  14631.  
  14632.     
  14633.     def GetApplyButton(*args, **kwargs):
  14634.         '''GetApplyButton(self) -> wxButton'''
  14635.         return _core_.StdDialogButtonSizer_GetApplyButton(*args, **kwargs)
  14636.  
  14637.     
  14638.     def GetNegativeButton(*args, **kwargs):
  14639.         '''GetNegativeButton(self) -> wxButton'''
  14640.         return _core_.StdDialogButtonSizer_GetNegativeButton(*args, **kwargs)
  14641.  
  14642.     
  14643.     def GetCancelButton(*args, **kwargs):
  14644.         '''GetCancelButton(self) -> wxButton'''
  14645.         return _core_.StdDialogButtonSizer_GetCancelButton(*args, **kwargs)
  14646.  
  14647.     
  14648.     def GetHelpButton(*args, **kwargs):
  14649.         '''GetHelpButton(self) -> wxButton'''
  14650.         return _core_.StdDialogButtonSizer_GetHelpButton(*args, **kwargs)
  14651.  
  14652.  
  14653.  
  14654. class StdDialogButtonSizerPtr(StdDialogButtonSizer):
  14655.     
  14656.     def __init__(self, this):
  14657.         self.this = this
  14658.         if not hasattr(self, 'thisown'):
  14659.             self.thisown = 0
  14660.         
  14661.         self.__class__ = StdDialogButtonSizer
  14662.  
  14663.  
  14664. _core_.StdDialogButtonSizer_swigregister(StdDialogButtonSizerPtr)
  14665.  
  14666. class GBPosition(object):
  14667.     '''
  14668.     This class represents the position of an item in a virtual grid of
  14669.     rows and columns managed by a `wx.GridBagSizer`.  wxPython has
  14670.     typemaps that will automatically convert from a 2-element sequence of
  14671.     integers to a wx.GBPosition, so you can use the more pythonic
  14672.     representation of the position nearly transparently in Python code.
  14673.     '''
  14674.     
  14675.     def __repr__(self):
  14676.         return '<%s.%s; proxy of C++ wxGBPosition instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14677.  
  14678.     
  14679.     def __init__(self, *args, **kwargs):
  14680.         '''
  14681.         __init__(self, int row=0, int col=0) -> GBPosition
  14682.  
  14683.         This class represents the position of an item in a virtual grid of
  14684.         rows and columns managed by a `wx.GridBagSizer`.  wxPython has
  14685.         typemaps that will automatically convert from a 2-element sequence of
  14686.         integers to a wx.GBPosition, so you can use the more pythonic
  14687.         representation of the position nearly transparently in Python code.
  14688.         '''
  14689.         newobj = _core_.new_GBPosition(*args, **kwargs)
  14690.         self.this = newobj.this
  14691.         self.thisown = 1
  14692.         del newobj.thisown
  14693.  
  14694.     
  14695.     def GetRow(*args, **kwargs):
  14696.         '''GetRow(self) -> int'''
  14697.         return _core_.GBPosition_GetRow(*args, **kwargs)
  14698.  
  14699.     
  14700.     def GetCol(*args, **kwargs):
  14701.         '''GetCol(self) -> int'''
  14702.         return _core_.GBPosition_GetCol(*args, **kwargs)
  14703.  
  14704.     
  14705.     def SetRow(*args, **kwargs):
  14706.         '''SetRow(self, int row)'''
  14707.         return _core_.GBPosition_SetRow(*args, **kwargs)
  14708.  
  14709.     
  14710.     def SetCol(*args, **kwargs):
  14711.         '''SetCol(self, int col)'''
  14712.         return _core_.GBPosition_SetCol(*args, **kwargs)
  14713.  
  14714.     
  14715.     def __eq__(*args, **kwargs):
  14716.         '''
  14717.         __eq__(self, PyObject other) -> bool
  14718.  
  14719.         Compare GBPosition for equality.
  14720.         '''
  14721.         return _core_.GBPosition___eq__(*args, **kwargs)
  14722.  
  14723.     
  14724.     def __ne__(*args, **kwargs):
  14725.         '''
  14726.         __ne__(self, PyObject other) -> bool
  14727.  
  14728.         Compare GBPosition for inequality.
  14729.         '''
  14730.         return _core_.GBPosition___ne__(*args, **kwargs)
  14731.  
  14732.     
  14733.     def Set(*args, **kwargs):
  14734.         '''Set(self, int row=0, int col=0)'''
  14735.         return _core_.GBPosition_Set(*args, **kwargs)
  14736.  
  14737.     
  14738.     def Get(*args, **kwargs):
  14739.         '''Get(self) -> PyObject'''
  14740.         return _core_.GBPosition_Get(*args, **kwargs)
  14741.  
  14742.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  14743.     
  14744.     def __str__(self):
  14745.         return str(self.Get())
  14746.  
  14747.     
  14748.     def __repr__(self):
  14749.         return 'wx.GBPosition' + str(self.Get())
  14750.  
  14751.     
  14752.     def __len__(self):
  14753.         return len(self.Get())
  14754.  
  14755.     
  14756.     def __getitem__(self, index):
  14757.         return self.Get()[index]
  14758.  
  14759.     
  14760.     def __setitem__(self, index, val):
  14761.         if index == 0:
  14762.             self.SetRow(val)
  14763.         elif index == 1:
  14764.             self.SetCol(val)
  14765.         else:
  14766.             raise IndexError
  14767.  
  14768.     
  14769.     def __nonzero__(self):
  14770.         return self.Get() != (0, 0)
  14771.  
  14772.     __safe_for_unpickling__ = True
  14773.     
  14774.     def __reduce__(self):
  14775.         return (wx.GBPosition, self.Get())
  14776.  
  14777.     row = property(GetRow, SetRow)
  14778.     col = property(GetCol, SetCol)
  14779.  
  14780.  
  14781. class GBPositionPtr(GBPosition):
  14782.     
  14783.     def __init__(self, this):
  14784.         self.this = this
  14785.         if not hasattr(self, 'thisown'):
  14786.             self.thisown = 0
  14787.         
  14788.         self.__class__ = GBPosition
  14789.  
  14790.  
  14791. _core_.GBPosition_swigregister(GBPositionPtr)
  14792.  
  14793. class GBSpan(object):
  14794.     '''
  14795.     This class is used to hold the row and column spanning attributes of
  14796.     items in a `wx.GridBagSizer`.  wxPython has typemaps that will
  14797.     automatically convert from a 2-element sequence of integers to a
  14798.     wx.GBSpan, so you can use the more pythonic representation of the span
  14799.     nearly transparently in Python code.
  14800.  
  14801.     '''
  14802.     
  14803.     def __repr__(self):
  14804.         return '<%s.%s; proxy of C++ wxGBSpan instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14805.  
  14806.     
  14807.     def __init__(self, *args, **kwargs):
  14808.         '''
  14809.         __init__(self, int rowspan=1, int colspan=1) -> GBSpan
  14810.  
  14811.         Construct a new wxGBSpan, optionally setting the rowspan and
  14812.         colspan. The default is (1,1). (Meaning that the item occupies one
  14813.         cell in each direction.
  14814.         '''
  14815.         newobj = _core_.new_GBSpan(*args, **kwargs)
  14816.         self.this = newobj.this
  14817.         self.thisown = 1
  14818.         del newobj.thisown
  14819.  
  14820.     
  14821.     def GetRowspan(*args, **kwargs):
  14822.         '''GetRowspan(self) -> int'''
  14823.         return _core_.GBSpan_GetRowspan(*args, **kwargs)
  14824.  
  14825.     
  14826.     def GetColspan(*args, **kwargs):
  14827.         '''GetColspan(self) -> int'''
  14828.         return _core_.GBSpan_GetColspan(*args, **kwargs)
  14829.  
  14830.     
  14831.     def SetRowspan(*args, **kwargs):
  14832.         '''SetRowspan(self, int rowspan)'''
  14833.         return _core_.GBSpan_SetRowspan(*args, **kwargs)
  14834.  
  14835.     
  14836.     def SetColspan(*args, **kwargs):
  14837.         '''SetColspan(self, int colspan)'''
  14838.         return _core_.GBSpan_SetColspan(*args, **kwargs)
  14839.  
  14840.     
  14841.     def __eq__(*args, **kwargs):
  14842.         '''
  14843.         __eq__(self, PyObject other) -> bool
  14844.  
  14845.         Compare wxGBSpan for equality.
  14846.         '''
  14847.         return _core_.GBSpan___eq__(*args, **kwargs)
  14848.  
  14849.     
  14850.     def __ne__(*args, **kwargs):
  14851.         '''
  14852.         __ne__(self, PyObject other) -> bool
  14853.  
  14854.         Compare GBSpan for inequality.
  14855.         '''
  14856.         return _core_.GBSpan___ne__(*args, **kwargs)
  14857.  
  14858.     
  14859.     def Set(*args, **kwargs):
  14860.         '''Set(self, int rowspan=1, int colspan=1)'''
  14861.         return _core_.GBSpan_Set(*args, **kwargs)
  14862.  
  14863.     
  14864.     def Get(*args, **kwargs):
  14865.         '''Get(self) -> PyObject'''
  14866.         return _core_.GBSpan_Get(*args, **kwargs)
  14867.  
  14868.     asTuple = wx._deprecated(Get, 'asTuple is deprecated, use `Get` instead')
  14869.     
  14870.     def __str__(self):
  14871.         return str(self.Get())
  14872.  
  14873.     
  14874.     def __repr__(self):
  14875.         return 'wx.GBSpan' + str(self.Get())
  14876.  
  14877.     
  14878.     def __len__(self):
  14879.         return len(self.Get())
  14880.  
  14881.     
  14882.     def __getitem__(self, index):
  14883.         return self.Get()[index]
  14884.  
  14885.     
  14886.     def __setitem__(self, index, val):
  14887.         if index == 0:
  14888.             self.SetRowspan(val)
  14889.         elif index == 1:
  14890.             self.SetColspan(val)
  14891.         else:
  14892.             raise IndexError
  14893.  
  14894.     
  14895.     def __nonzero__(self):
  14896.         return self.Get() != (0, 0)
  14897.  
  14898.     __safe_for_unpickling__ = True
  14899.     
  14900.     def __reduce__(self):
  14901.         return (wx.GBSpan, self.Get())
  14902.  
  14903.     rowspan = property(GetRowspan, SetRowspan)
  14904.     colspan = property(GetColspan, SetColspan)
  14905.  
  14906.  
  14907. class GBSpanPtr(GBSpan):
  14908.     
  14909.     def __init__(self, this):
  14910.         self.this = this
  14911.         if not hasattr(self, 'thisown'):
  14912.             self.thisown = 0
  14913.         
  14914.         self.__class__ = GBSpan
  14915.  
  14916.  
  14917. _core_.GBSpan_swigregister(GBSpanPtr)
  14918.  
  14919. class GBSizerItem(SizerItem):
  14920.     """
  14921.     The wx.GBSizerItem class is used to track the additional data about
  14922.     items in a `wx.GridBagSizer` such as the item's position in the grid
  14923.     and how many rows or columns it spans.
  14924.  
  14925.     """
  14926.     
  14927.     def __repr__(self):
  14928.         return '<%s.%s; proxy of C++ wxGBSizerItem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  14929.  
  14930.     
  14931.     def __init__(self, *args, **kwargs):
  14932.         """
  14933.         __init__(self) -> GBSizerItem
  14934.  
  14935.         Constructs an empty wx.GBSizerItem.  Either a window, sizer or spacer
  14936.         size will need to be set, as well as a position and span before this
  14937.         item can be used in a Sizer.
  14938.  
  14939.         You will probably never need to create a wx.GBSizerItem directly as they
  14940.         are created automatically when the sizer's Add method is called.
  14941.         """
  14942.         newobj = _core_.new_GBSizerItem(*args, **kwargs)
  14943.         self.this = newobj.this
  14944.         self.thisown = 1
  14945.         del newobj.thisown
  14946.  
  14947.     
  14948.     def GetPos(*args, **kwargs):
  14949.         '''
  14950.         GetPos(self) -> GBPosition
  14951.  
  14952.         Get the grid position of the item
  14953.         '''
  14954.         return _core_.GBSizerItem_GetPos(*args, **kwargs)
  14955.  
  14956.     
  14957.     def GetPosTuple(self):
  14958.         return self.GetPos().Get()
  14959.  
  14960.     
  14961.     def GetSpan(*args, **kwargs):
  14962.         '''
  14963.         GetSpan(self) -> GBSpan
  14964.  
  14965.         Get the row and column spanning of the item
  14966.         '''
  14967.         return _core_.GBSizerItem_GetSpan(*args, **kwargs)
  14968.  
  14969.     
  14970.     def GetSpanTuple(self):
  14971.         return self.GetSpan().Get()
  14972.  
  14973.     
  14974.     def SetPos(*args, **kwargs):
  14975.         '''
  14976.         SetPos(self, GBPosition pos) -> bool
  14977.  
  14978.         If the item is already a member of a sizer then first ensure that
  14979.         there is no other item that would intersect with this one at the new
  14980.         position, then set the new position.  Returns True if the change is
  14981.         successful and after the next Layout() the item will be moved.
  14982.         '''
  14983.         return _core_.GBSizerItem_SetPos(*args, **kwargs)
  14984.  
  14985.     
  14986.     def SetSpan(*args, **kwargs):
  14987.         '''
  14988.         SetSpan(self, GBSpan span) -> bool
  14989.  
  14990.         If the item is already a member of a sizer then first ensure that
  14991.         there is no other item that would intersect with this one with its new
  14992.         spanning size, then set the new spanning.  Returns True if the change
  14993.         is successful and after the next Layout() the item will be resized.
  14994.  
  14995.         '''
  14996.         return _core_.GBSizerItem_SetSpan(*args, **kwargs)
  14997.  
  14998.     
  14999.     def Intersects(*args, **kwargs):
  15000.         '''
  15001.         Intersects(self, GBSizerItem other) -> bool
  15002.  
  15003.         Returns True if this item and the other item instersect.
  15004.         '''
  15005.         return _core_.GBSizerItem_Intersects(*args, **kwargs)
  15006.  
  15007.     
  15008.     def IntersectsPos(*args, **kwargs):
  15009.         '''
  15010.         IntersectsPos(self, GBPosition pos, GBSpan span) -> bool
  15011.  
  15012.         Returns True if the given pos/span would intersect with this item.
  15013.         '''
  15014.         return _core_.GBSizerItem_IntersectsPos(*args, **kwargs)
  15015.  
  15016.     
  15017.     def GetEndPos(*args, **kwargs):
  15018.         '''
  15019.         GetEndPos(self) -> GBPosition
  15020.  
  15021.         Get the row and column of the endpoint of this item.
  15022.         '''
  15023.         return _core_.GBSizerItem_GetEndPos(*args, **kwargs)
  15024.  
  15025.     
  15026.     def GetGBSizer(*args, **kwargs):
  15027.         '''
  15028.         GetGBSizer(self) -> GridBagSizer
  15029.  
  15030.         Get the sizer this item is a member of.
  15031.         '''
  15032.         return _core_.GBSizerItem_GetGBSizer(*args, **kwargs)
  15033.  
  15034.     
  15035.     def SetGBSizer(*args, **kwargs):
  15036.         '''
  15037.         SetGBSizer(self, GridBagSizer sizer)
  15038.  
  15039.         Set the sizer this item is a member of.
  15040.         '''
  15041.         return _core_.GBSizerItem_SetGBSizer(*args, **kwargs)
  15042.  
  15043.  
  15044.  
  15045. class GBSizerItemPtr(GBSizerItem):
  15046.     
  15047.     def __init__(self, this):
  15048.         self.this = this
  15049.         if not hasattr(self, 'thisown'):
  15050.             self.thisown = 0
  15051.         
  15052.         self.__class__ = GBSizerItem
  15053.  
  15054.  
  15055. _core_.GBSizerItem_swigregister(GBSizerItemPtr)
  15056. DefaultSpan = cvar.DefaultSpan
  15057.  
  15058. def GBSizerItemWindow(*args, **kwargs):
  15059.     '''
  15060.     GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, 
  15061.         int border, PyObject userData=None) -> GBSizerItem
  15062.  
  15063.     Construct a `wx.GBSizerItem` for a window.
  15064.     '''
  15065.     val = _core_.new_GBSizerItemWindow(*args, **kwargs)
  15066.     val.thisown = 1
  15067.     return val
  15068.  
  15069.  
  15070. def GBSizerItemSizer(*args, **kwargs):
  15071.     '''
  15072.     GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, 
  15073.         int border, PyObject userData=None) -> GBSizerItem
  15074.  
  15075.     Construct a `wx.GBSizerItem` for a sizer
  15076.     '''
  15077.     val = _core_.new_GBSizerItemSizer(*args, **kwargs)
  15078.     val.thisown = 1
  15079.     return val
  15080.  
  15081.  
  15082. def GBSizerItemSpacer(*args, **kwargs):
  15083.     '''
  15084.     GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, 
  15085.         int flag, int border, PyObject userData=None) -> GBSizerItem
  15086.  
  15087.     Construct a `wx.GBSizerItem` for a spacer.
  15088.     '''
  15089.     val = _core_.new_GBSizerItemSpacer(*args, **kwargs)
  15090.     val.thisown = 1
  15091.     return val
  15092.  
  15093.  
  15094. class GridBagSizer(FlexGridSizer):
  15095.     '''
  15096.     A `wx.Sizer` that can lay out items in a virtual grid like a
  15097.     `wx.FlexGridSizer` but in this case explicit positioning of the items
  15098.     is allowed using `wx.GBPosition`, and items can optionally span more
  15099.     than one row and/or column using `wx.GBSpan`.  The total size of the
  15100.     virtual grid is determined by the largest row and column that items are
  15101.     positioned at, adjusted for spanning.
  15102.  
  15103.     '''
  15104.     
  15105.     def __repr__(self):
  15106.         return '<%s.%s; proxy of C++ wxGridBagSizer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  15107.  
  15108.     
  15109.     def __init__(self, *args, **kwargs):
  15110.         '''
  15111.         __init__(self, int vgap=0, int hgap=0) -> GridBagSizer
  15112.  
  15113.         Constructor, with optional parameters to specify the gap between the
  15114.         rows and columns.
  15115.         '''
  15116.         newobj = _core_.new_GridBagSizer(*args, **kwargs)
  15117.         self.this = newobj.this
  15118.         self.thisown = 1
  15119.         del newobj.thisown
  15120.         self._setOORInfo(self)
  15121.  
  15122.     
  15123.     def Add(*args, **kwargs):
  15124.         '''
  15125.         Add(self, item, GBPosition pos, GBSpan span=DefaultSpan, int flag=0,
  15126.         int border=0, userData=None) -> wx.GBSizerItem
  15127.  
  15128.         Adds an item to the sizer at the grid cell *pos*, optionally spanning
  15129.         more than one row or column as specified with *span*.  The remaining
  15130.         args behave similarly to `wx.Sizer.Add`.
  15131.  
  15132.         Returns True if the item was successfully placed at the given cell
  15133.         position, False if something was already there.
  15134.  
  15135.         '''
  15136.         return _core_.GridBagSizer_Add(*args, **kwargs)
  15137.  
  15138.     
  15139.     def AddItem(*args, **kwargs):
  15140.         '''
  15141.         Add(self, GBSizerItem item) -> wx.GBSizerItem
  15142.  
  15143.         Add an item to the sizer using a `wx.GBSizerItem`.  Returns True if
  15144.         the item was successfully placed at its given cell position, False if
  15145.         something was already there.
  15146.         '''
  15147.         return _core_.GridBagSizer_AddItem(*args, **kwargs)
  15148.  
  15149.     
  15150.     def GetCellSize(*args, **kwargs):
  15151.         '''
  15152.         GetCellSize(self, int row, int col) -> Size
  15153.  
  15154.         Get the size of the specified cell, including hgap and
  15155.         vgap.  Only valid after a Layout.
  15156.         '''
  15157.         return _core_.GridBagSizer_GetCellSize(*args, **kwargs)
  15158.  
  15159.     
  15160.     def GetEmptyCellSize(*args, **kwargs):
  15161.         '''
  15162.         GetEmptyCellSize(self) -> Size
  15163.  
  15164.         Get the size used for cells in the grid with no item.
  15165.         '''
  15166.         return _core_.GridBagSizer_GetEmptyCellSize(*args, **kwargs)
  15167.  
  15168.     
  15169.     def SetEmptyCellSize(*args, **kwargs):
  15170.         '''
  15171.         SetEmptyCellSize(self, Size sz)
  15172.  
  15173.         Set the size used for cells in the grid with no item.
  15174.         '''
  15175.         return _core_.GridBagSizer_SetEmptyCellSize(*args, **kwargs)
  15176.  
  15177.     
  15178.     def GetItemPosition(*args):
  15179.         '''
  15180.         GetItemPosition(self, item) -> GBPosition
  15181.  
  15182.         Get the grid position of the specified *item* where *item* is either a
  15183.         window or subsizer that is a member of this sizer, or a zero-based
  15184.         index of an item.
  15185.         '''
  15186.         return _core_.GridBagSizer_GetItemPosition(*args)
  15187.  
  15188.     
  15189.     def SetItemPosition(*args):
  15190.         '''
  15191.         SetItemPosition(self, item, GBPosition pos) -> bool
  15192.  
  15193.         Set the grid position of the specified *item* where *item* is either a
  15194.         window or subsizer that is a member of this sizer, or a zero-based
  15195.         index of an item.  Returns True on success.  If the move is not
  15196.         allowed (because an item is already there) then False is returned.
  15197.  
  15198.         '''
  15199.         return _core_.GridBagSizer_SetItemPosition(*args)
  15200.  
  15201.     
  15202.     def GetItemSpan(*args):
  15203.         '''
  15204.         GetItemSpan(self, item) -> GBSpan
  15205.  
  15206.         Get the row/col spanning of the specified *item* where *item* is
  15207.         either a window or subsizer that is a member of this sizer, or a
  15208.         zero-based index of an item.
  15209.         '''
  15210.         return _core_.GridBagSizer_GetItemSpan(*args)
  15211.  
  15212.     
  15213.     def SetItemSpan(*args):
  15214.         '''
  15215.         SetItemSpan(self, item, GBSpan span) -> bool
  15216.  
  15217.         Set the row/col spanning of the specified *item* where *item* is
  15218.         either a window or subsizer that is a member of this sizer, or a
  15219.         zero-based index of an item.  Returns True on success.  If the move is
  15220.         not allowed (because an item is already there) then False is returned.
  15221.         '''
  15222.         return _core_.GridBagSizer_SetItemSpan(*args)
  15223.  
  15224.     
  15225.     def FindItem(*args):
  15226.         '''
  15227.         FindItem(self, item) -> GBSizerItem
  15228.  
  15229.         Find the sizer item for the given window or subsizer, returns None if
  15230.         not found. (non-recursive)
  15231.         '''
  15232.         return _core_.GridBagSizer_FindItem(*args)
  15233.  
  15234.     
  15235.     def FindItemAtPosition(*args, **kwargs):
  15236.         '''
  15237.         FindItemAtPosition(self, GBPosition pos) -> GBSizerItem
  15238.  
  15239.         Return the sizer item for the given grid cell, or None if there is no
  15240.         item at that position. (non-recursive)
  15241.         '''
  15242.         return _core_.GridBagSizer_FindItemAtPosition(*args, **kwargs)
  15243.  
  15244.     
  15245.     def FindItemAtPoint(*args, **kwargs):
  15246.         '''
  15247.         FindItemAtPoint(self, Point pt) -> GBSizerItem
  15248.  
  15249.         Return the sizer item located at the point given in *pt*, or None if
  15250.         there is no item at that point. The (x,y) coordinates in pt correspond
  15251.         to the client coordinates of the window using the sizer for
  15252.         layout. (non-recursive)
  15253.         '''
  15254.         return _core_.GridBagSizer_FindItemAtPoint(*args, **kwargs)
  15255.  
  15256.     
  15257.     def CheckForIntersection(*args, **kwargs):
  15258.         '''
  15259.         CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool
  15260.  
  15261.         Look at all items and see if any intersect (or would overlap) the
  15262.         given *item*.  Returns True if so, False if there would be no overlap.
  15263.         If an *excludeItem* is given then it will not be checked for
  15264.         intersection, for example it may be the item we are checking the
  15265.         position of.
  15266.  
  15267.         '''
  15268.         return _core_.GridBagSizer_CheckForIntersection(*args, **kwargs)
  15269.  
  15270.     
  15271.     def CheckForIntersectionPos(*args, **kwargs):
  15272.         '''
  15273.         CheckForIntersectionPos(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool
  15274.  
  15275.         Look at all items and see if any intersect (or would overlap) the
  15276.         given position and span.  Returns True if so, False if there would be
  15277.         no overlap.  If an *excludeItem* is given then it will not be checked
  15278.         for intersection, for example it may be the item we are checking the
  15279.         position of.
  15280.         '''
  15281.         return _core_.GridBagSizer_CheckForIntersectionPos(*args, **kwargs)
  15282.  
  15283.  
  15284.  
  15285. class GridBagSizerPtr(GridBagSizer):
  15286.     
  15287.     def __init__(self, this):
  15288.         self.this = this
  15289.         if not hasattr(self, 'thisown'):
  15290.             self.thisown = 0
  15291.         
  15292.         self.__class__ = GridBagSizer
  15293.  
  15294.  
  15295. _core_.GridBagSizer_swigregister(GridBagSizerPtr)
  15296. Left = _core_.Left
  15297. Top = _core_.Top
  15298. Right = _core_.Right
  15299. Bottom = _core_.Bottom
  15300. Width = _core_.Width
  15301. Height = _core_.Height
  15302. Centre = _core_.Centre
  15303. Center = _core_.Center
  15304. CentreX = _core_.CentreX
  15305. CentreY = _core_.CentreY
  15306. Unconstrained = _core_.Unconstrained
  15307. AsIs = _core_.AsIs
  15308. PercentOf = _core_.PercentOf
  15309. Above = _core_.Above
  15310. Below = _core_.Below
  15311. LeftOf = _core_.LeftOf
  15312. RightOf = _core_.RightOf
  15313. SameAs = _core_.SameAs
  15314. Absolute = _core_.Absolute
  15315.  
  15316. class IndividualLayoutConstraint(Object):
  15317.     '''
  15318.     Objects of this class are stored in the `wx.LayoutConstraints` class as
  15319.     one of eight possible constraints that a window can be involved in.
  15320.     You will never need to create an instance of
  15321.     wx.IndividualLayoutConstraint, rather you should create a
  15322.     `wx.LayoutConstraints` instance and use the individual contstraints
  15323.     that it contains.
  15324.     '''
  15325.     
  15326.     def __init__(self):
  15327.         raise RuntimeError, 'No constructor defined'
  15328.  
  15329.     
  15330.     def __repr__(self):
  15331.         return '<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  15332.  
  15333.     
  15334.     def Set(*args, **kwargs):
  15335.         '''
  15336.         Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)
  15337.  
  15338.         Sets the properties of the constraint. Normally called by one of the
  15339.         convenience functions such as Above, RightOf, SameAs.
  15340.         '''
  15341.         return _core_.IndividualLayoutConstraint_Set(*args, **kwargs)
  15342.  
  15343.     
  15344.     def LeftOf(*args, **kwargs):
  15345.         '''
  15346.         LeftOf(self, Window sibling, int marg=0)
  15347.  
  15348.         Constrains this edge to be to the left of the given window, with an
  15349.         optional margin. Implicitly, this is relative to the left edge of the
  15350.         other window.
  15351.         '''
  15352.         return _core_.IndividualLayoutConstraint_LeftOf(*args, **kwargs)
  15353.  
  15354.     
  15355.     def RightOf(*args, **kwargs):
  15356.         '''
  15357.         RightOf(self, Window sibling, int marg=0)
  15358.  
  15359.         Constrains this edge to be to the right of the given window, with an
  15360.         optional margin. Implicitly, this is relative to the right edge of the
  15361.         other window.
  15362.         '''
  15363.         return _core_.IndividualLayoutConstraint_RightOf(*args, **kwargs)
  15364.  
  15365.     
  15366.     def Above(*args, **kwargs):
  15367.         '''
  15368.         Above(self, Window sibling, int marg=0)
  15369.  
  15370.         Constrains this edge to be above the given window, with an optional
  15371.         margin. Implicitly, this is relative to the top edge of the other
  15372.         window.
  15373.         '''
  15374.         return _core_.IndividualLayoutConstraint_Above(*args, **kwargs)
  15375.  
  15376.     
  15377.     def Below(*args, **kwargs):
  15378.         '''
  15379.         Below(self, Window sibling, int marg=0)
  15380.  
  15381.         Constrains this edge to be below the given window, with an optional
  15382.         margin. Implicitly, this is relative to the bottom edge of the other
  15383.         window.
  15384.         '''
  15385.         return _core_.IndividualLayoutConstraint_Below(*args, **kwargs)
  15386.  
  15387.     
  15388.     def SameAs(*args, **kwargs):
  15389.         '''
  15390.         SameAs(self, Window otherW, int edge, int marg=0)
  15391.  
  15392.         Constrains this edge or dimension to be to the same as the edge of the
  15393.         given window, with an optional margin.
  15394.         '''
  15395.         return _core_.IndividualLayoutConstraint_SameAs(*args, **kwargs)
  15396.  
  15397.     
  15398.     def PercentOf(*args, **kwargs):
  15399.         '''
  15400.         PercentOf(self, Window otherW, int wh, int per)
  15401.  
  15402.         Constrains this edge or dimension to be to a percentage of the given
  15403.         window, with an optional margin.
  15404.         '''
  15405.         return _core_.IndividualLayoutConstraint_PercentOf(*args, **kwargs)
  15406.  
  15407.     
  15408.     def Absolute(*args, **kwargs):
  15409.         '''
  15410.         Absolute(self, int val)
  15411.  
  15412.         Constrains this edge or dimension to be the given absolute value.
  15413.         '''
  15414.         return _core_.IndividualLayoutConstraint_Absolute(*args, **kwargs)
  15415.  
  15416.     
  15417.     def Unconstrained(*args, **kwargs):
  15418.         '''
  15419.         Unconstrained(self)
  15420.  
  15421.         Sets this edge or dimension to be unconstrained, that is, dependent on
  15422.         other edges and dimensions from which this value can be deduced.
  15423.         '''
  15424.         return _core_.IndividualLayoutConstraint_Unconstrained(*args, **kwargs)
  15425.  
  15426.     
  15427.     def AsIs(*args, **kwargs):
  15428.         """
  15429.         AsIs(self)
  15430.  
  15431.         Sets this edge or constraint to be whatever the window's value is at
  15432.         the moment. If either of the width and height constraints are *as is*,
  15433.         the window will not be resized, but moved instead. This is important
  15434.         when considering panel items which are intended to have a default
  15435.         size, such as a button, which may take its size from the size of the
  15436.         button label.
  15437.         """
  15438.         return _core_.IndividualLayoutConstraint_AsIs(*args, **kwargs)
  15439.  
  15440.     
  15441.     def GetOtherWindow(*args, **kwargs):
  15442.         '''GetOtherWindow(self) -> Window'''
  15443.         return _core_.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs)
  15444.  
  15445.     
  15446.     def GetMyEdge(*args, **kwargs):
  15447.         '''GetMyEdge(self) -> int'''
  15448.         return _core_.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs)
  15449.  
  15450.     
  15451.     def SetEdge(*args, **kwargs):
  15452.         '''SetEdge(self, int which)'''
  15453.         return _core_.IndividualLayoutConstraint_SetEdge(*args, **kwargs)
  15454.  
  15455.     
  15456.     def SetValue(*args, **kwargs):
  15457.         '''SetValue(self, int v)'''
  15458.         return _core_.IndividualLayoutConstraint_SetValue(*args, **kwargs)
  15459.  
  15460.     
  15461.     def GetMargin(*args, **kwargs):
  15462.         '''GetMargin(self) -> int'''
  15463.         return _core_.IndividualLayoutConstraint_GetMargin(*args, **kwargs)
  15464.  
  15465.     
  15466.     def SetMargin(*args, **kwargs):
  15467.         '''SetMargin(self, int m)'''
  15468.         return _core_.IndividualLayoutConstraint_SetMargin(*args, **kwargs)
  15469.  
  15470.     
  15471.     def GetValue(*args, **kwargs):
  15472.         '''GetValue(self) -> int'''
  15473.         return _core_.IndividualLayoutConstraint_GetValue(*args, **kwargs)
  15474.  
  15475.     
  15476.     def GetPercent(*args, **kwargs):
  15477.         '''GetPercent(self) -> int'''
  15478.         return _core_.IndividualLayoutConstraint_GetPercent(*args, **kwargs)
  15479.  
  15480.     
  15481.     def GetOtherEdge(*args, **kwargs):
  15482.         '''GetOtherEdge(self) -> int'''
  15483.         return _core_.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs)
  15484.  
  15485.     
  15486.     def GetDone(*args, **kwargs):
  15487.         '''GetDone(self) -> bool'''
  15488.         return _core_.IndividualLayoutConstraint_GetDone(*args, **kwargs)
  15489.  
  15490.     
  15491.     def SetDone(*args, **kwargs):
  15492.         '''SetDone(self, bool d)'''
  15493.         return _core_.IndividualLayoutConstraint_SetDone(*args, **kwargs)
  15494.  
  15495.     
  15496.     def GetRelationship(*args, **kwargs):
  15497.         '''GetRelationship(self) -> int'''
  15498.         return _core_.IndividualLayoutConstraint_GetRelationship(*args, **kwargs)
  15499.  
  15500.     
  15501.     def SetRelationship(*args, **kwargs):
  15502.         '''SetRelationship(self, int r)'''
  15503.         return _core_.IndividualLayoutConstraint_SetRelationship(*args, **kwargs)
  15504.  
  15505.     
  15506.     def ResetIfWin(*args, **kwargs):
  15507.         '''
  15508.         ResetIfWin(self, Window otherW) -> bool
  15509.  
  15510.         Reset constraint if it mentions otherWin
  15511.         '''
  15512.         return _core_.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs)
  15513.  
  15514.     
  15515.     def SatisfyConstraint(*args, **kwargs):
  15516.         '''
  15517.         SatisfyConstraint(self, LayoutConstraints constraints, Window win) -> bool
  15518.  
  15519.         Try to satisfy constraint
  15520.         '''
  15521.         return _core_.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs)
  15522.  
  15523.     
  15524.     def GetEdge(*args, **kwargs):
  15525.         '''
  15526.         GetEdge(self, int which, Window thisWin, Window other) -> int
  15527.  
  15528.         Get the value of this edge or dimension, or if this
  15529.         is not determinable, -1.
  15530.         '''
  15531.         return _core_.IndividualLayoutConstraint_GetEdge(*args, **kwargs)
  15532.  
  15533.  
  15534.  
  15535. class IndividualLayoutConstraintPtr(IndividualLayoutConstraint):
  15536.     
  15537.     def __init__(self, this):
  15538.         self.this = this
  15539.         if not hasattr(self, 'thisown'):
  15540.             self.thisown = 0
  15541.         
  15542.         self.__class__ = IndividualLayoutConstraint
  15543.  
  15544.  
  15545. _core_.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr)
  15546.  
  15547. class LayoutConstraints(Object):
  15548.     '''
  15549.     **Note:** constraints are now deprecated and you should use sizers
  15550.     instead.
  15551.  
  15552.     Objects of this class can be associated with a window to define its
  15553.     layout constraints, with respect to siblings or its parent.
  15554.  
  15555.     The class consists of the following eight constraints of class
  15556.     wx.IndividualLayoutConstraint, some or all of which should be accessed
  15557.     directly to set the appropriate constraints.
  15558.  
  15559.         * left: represents the left hand edge of the window
  15560.         * right: represents the right hand edge of the window
  15561.         * top: represents the top edge of the window
  15562.         * bottom: represents the bottom edge of the window
  15563.         * width: represents the width of the window
  15564.         * height: represents the height of the window
  15565.         * centreX: represents the horizontal centre point of the window
  15566.         * centreY: represents the vertical centre point of the window 
  15567.  
  15568.     Most constraints are initially set to have the relationship
  15569.     wxUnconstrained, which means that their values should be calculated by
  15570.     looking at known constraints. The exceptions are width and height,
  15571.     which are set to wxAsIs to ensure that if the user does not specify a
  15572.     constraint, the existing width and height will be used, to be
  15573.     compatible with panel items which often have take a default size. If
  15574.     the constraint is ``wx.AsIs``, the dimension will not be changed.
  15575.  
  15576.     :see: `wx.IndividualLayoutConstraint`, `wx.Window.SetConstraints`
  15577.  
  15578.     '''
  15579.     
  15580.     def __repr__(self):
  15581.         return '<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  15582.  
  15583.     left = property(_core_.LayoutConstraints_left_get)
  15584.     top = property(_core_.LayoutConstraints_top_get)
  15585.     right = property(_core_.LayoutConstraints_right_get)
  15586.     bottom = property(_core_.LayoutConstraints_bottom_get)
  15587.     width = property(_core_.LayoutConstraints_width_get)
  15588.     height = property(_core_.LayoutConstraints_height_get)
  15589.     centreX = property(_core_.LayoutConstraints_centreX_get)
  15590.     centreY = property(_core_.LayoutConstraints_centreY_get)
  15591.     
  15592.     def __init__(self, *args, **kwargs):
  15593.         '''__init__(self) -> LayoutConstraints'''
  15594.         newobj = _core_.new_LayoutConstraints(*args, **kwargs)
  15595.         self.this = newobj.this
  15596.         self.thisown = 1
  15597.         del newobj.thisown
  15598.  
  15599.     
  15600.     def SatisfyConstraints(*args, **kwargs):
  15601.         '''SatisfyConstraints(Window win) -> (areSatisfied, noChanges)'''
  15602.         return _core_.LayoutConstraints_SatisfyConstraints(*args, **kwargs)
  15603.  
  15604.     
  15605.     def AreSatisfied(*args, **kwargs):
  15606.         '''AreSatisfied(self) -> bool'''
  15607.         return _core_.LayoutConstraints_AreSatisfied(*args, **kwargs)
  15608.  
  15609.  
  15610.  
  15611. class LayoutConstraintsPtr(LayoutConstraints):
  15612.     
  15613.     def __init__(self, this):
  15614.         self.this = this
  15615.         if not hasattr(self, 'thisown'):
  15616.             self.thisown = 0
  15617.         
  15618.         self.__class__ = LayoutConstraints
  15619.  
  15620.  
  15621. _core_.LayoutConstraints_swigregister(LayoutConstraintsPtr)
  15622.  
  15623. try:
  15624.     True
  15625. except NameError:
  15626.     __builtins__.True = 1 == 1
  15627.     __builtins__.False = 1 == 0
  15628.     
  15629.     def bool(value):
  15630.         return not (not value)
  15631.  
  15632.     __builtins__.bool = bool
  15633.  
  15634. __wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
  15635. __wxPyPtrTypeMap['wxSlider95'] = 'wxSlider'
  15636. __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar'
  15637. from __version__ import *
  15638. __version__ = VERSION_STRING
  15639. if not MAJOR_VERSION == _core_.MAJOR_VERSION:
  15640.     raise AssertionError, 'wxPython/wxWidgets version mismatch'
  15641. if not MINOR_VERSION == _core_.MINOR_VERSION:
  15642.     raise AssertionError, 'wxPython/wxWidgets version mismatch'
  15643. if RELEASE_VERSION != _core_.RELEASE_VERSION:
  15644.     import warnings
  15645.     warnings.warn('wxPython/wxWidgets release number mismatch')
  15646.  
  15647. default = _sys.getdefaultencoding()
  15648. if default == 'ascii':
  15649.     import locale
  15650.     import codecs
  15651.     
  15652.     try:
  15653.         default = locale.getdefaultlocale()[1]
  15654.         codecs.lookup(default)
  15655.     except (ValueError, LookupError, TypeError):
  15656.         default = _sys.getdefaultencoding()
  15657.  
  15658.     del locale
  15659.     del codecs
  15660.  
  15661. if default:
  15662.     wx.SetDefaultPyEncoding(default)
  15663.  
  15664. del default
  15665.  
  15666. class PyDeadObjectError(AttributeError):
  15667.     pass
  15668.  
  15669.  
  15670. class _wxPyDeadObject(object):
  15671.     '''
  15672.     Instances of wx objects that are OOR capable will have their __class__
  15673.     changed to this class when the C++ object is deleted.  This should help
  15674.     prevent crashes due to referencing a bogus C++ pointer.
  15675.     '''
  15676.     reprStr = 'wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)'
  15677.     attrStr = 'The C++ part of the %s object has been deleted, attribute access no longer allowed.'
  15678.     
  15679.     def __repr__(self):
  15680.         if not hasattr(self, '_name'):
  15681.             self._name = '[unknown]'
  15682.         
  15683.         return self.reprStr % self._name
  15684.  
  15685.     
  15686.     def __getattr__(self, *args):
  15687.         if not hasattr(self, '_name'):
  15688.             self._name = '[unknown]'
  15689.         
  15690.         raise PyDeadObjectError(self.attrStr % self._name)
  15691.  
  15692.     
  15693.     def __nonzero__(self):
  15694.         return 0
  15695.  
  15696.  
  15697.  
  15698. class PyUnbornObjectError(AttributeError):
  15699.     pass
  15700.  
  15701.  
  15702. class _wxPyUnbornObject(object):
  15703.     '''
  15704.     Some stock objects are created when the wx._core module is
  15705.     imported, but their C++ instance is not created until the wx.App
  15706.     object is created and initialized.  These object instances will
  15707.     temporarily have their __class__ changed to this class so an
  15708.     exception will be raised if they are used before the C++ instance
  15709.     is ready.
  15710.     '''
  15711.     reprStr = 'wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.)'
  15712.     attrStr = 'The C++ part of this object has not been initialized, attribute access not allowed.'
  15713.     
  15714.     def __repr__(self):
  15715.         return self.reprStr
  15716.  
  15717.     
  15718.     def __getattr__(self, *args):
  15719.         raise PyUnbornObjectError(self.attrStr)
  15720.  
  15721.     
  15722.     def __nonzero__(self):
  15723.         return 0
  15724.  
  15725.  
  15726.  
  15727. def CallAfter(callable, *args, **kw):
  15728.     '''
  15729.     Call the specified function after the current and pending event
  15730.     handlers have been completed.  This is also good for making GUI
  15731.     method calls from non-GUI threads.  Any extra positional or
  15732.     keyword args are passed on to the callable when it is called.
  15733.  
  15734.     :see: `wx.FutureCall`
  15735.     '''
  15736.     app = wx.GetApp()
  15737.     if not app is not None:
  15738.         raise AssertionError, 'No wx.App created yet'
  15739.     if not hasattr(app, '_CallAfterId'):
  15740.         app._CallAfterId = wx.NewEventType()
  15741.         app.Connect(-1, -1, app._CallAfterId, (lambda event: event.callable(*event.args, **event.kw)))
  15742.     
  15743.     evt = wx.PyEvent()
  15744.     evt.SetEventType(app._CallAfterId)
  15745.     evt.callable = callable
  15746.     evt.args = args
  15747.     evt.kw = kw
  15748.     wx.PostEvent(app, evt)
  15749.  
  15750.  
  15751. class FutureCall:
  15752.     """
  15753.     A convenience class for `wx.Timer`, that calls the given callable
  15754.     object once after the given amount of milliseconds, passing any
  15755.     positional or keyword args.  The return value of the callable is
  15756.     availbale after it has been run with the `GetResult` method.
  15757.  
  15758.     If you don't need to get the return value or restart the timer
  15759.     then there is no need to hold a reference to this object.  It will
  15760.     hold a reference to itself while the timer is running (the timer
  15761.     has a reference to self.Notify) but the cycle will be broken when
  15762.     the timer completes, automatically cleaning up the wx.FutureCall
  15763.     object.
  15764.  
  15765.     :see: `wx.CallAfter`
  15766.     """
  15767.     
  15768.     def __init__(self, millis, callable, *args, **kwargs):
  15769.         self.millis = millis
  15770.         self.callable = callable
  15771.         self.SetArgs(*args, **kwargs)
  15772.         self.runCount = 0
  15773.         self.running = False
  15774.         self.hasRun = False
  15775.         self.result = None
  15776.         self.timer = None
  15777.         self.Start()
  15778.  
  15779.     
  15780.     def __del__(self):
  15781.         self.Stop()
  15782.  
  15783.     
  15784.     def Start(self, millis = None, *args, **kwargs):
  15785.         '''
  15786.         (Re)start the timer
  15787.         '''
  15788.         self.hasRun = False
  15789.         if millis is not None:
  15790.             self.millis = millis
  15791.         
  15792.         if args or kwargs:
  15793.             self.SetArgs(*args, **kwargs)
  15794.         
  15795.         self.Stop()
  15796.         self.timer = wx.PyTimer(self.Notify)
  15797.         self.timer.Start(self.millis, wx.TIMER_ONE_SHOT)
  15798.         self.running = True
  15799.  
  15800.     Restart = Start
  15801.     
  15802.     def Stop(self):
  15803.         '''
  15804.         Stop and destroy the timer.
  15805.         '''
  15806.         if self.timer is not None:
  15807.             self.timer.Stop()
  15808.             self.timer = None
  15809.         
  15810.  
  15811.     
  15812.     def GetInterval(self):
  15813.         if self.timer is not None:
  15814.             return self.timer.GetInterval()
  15815.         else:
  15816.             return 0
  15817.  
  15818.     
  15819.     def IsRunning(self):
  15820.         if self.timer is not None:
  15821.             pass
  15822.         return self.timer.IsRunning()
  15823.  
  15824.     
  15825.     def SetArgs(self, *args, **kwargs):
  15826.         '''
  15827.         (Re)set the args passed to the callable object.  This is
  15828.         useful in conjunction with Restart if you want to schedule a
  15829.         new call to the same callable object but with different
  15830.         parameters.
  15831.         '''
  15832.         self.args = args
  15833.         self.kwargs = kwargs
  15834.  
  15835.     
  15836.     def HasRun(self):
  15837.         return self.hasRun
  15838.  
  15839.     
  15840.     def GetResult(self):
  15841.         return self.result
  15842.  
  15843.     
  15844.     def Notify(self):
  15845.         '''
  15846.         The timer has expired so call the callable.
  15847.         '''
  15848.         if self.callable and getattr(self.callable, 'im_self', True):
  15849.             self.runCount += 1
  15850.             self.running = False
  15851.             self.result = self.callable(*self.args, **self.kwargs)
  15852.         
  15853.         self.hasRun = True
  15854.         if not self.running:
  15855.             wx.CallAfter(self.Stop)
  15856.         
  15857.  
  15858.  
  15859.  
  15860. class __DocFilter:
  15861.     '''
  15862.     A filter for epydoc that only allows non-Ptr classes and
  15863.     fucntions, in order to reduce the clutter in the API docs.
  15864.     '''
  15865.     
  15866.     def __init__(self, globals):
  15867.         self._globals = globals
  15868.  
  15869.     
  15870.     def __call__(self, name):
  15871.         import types
  15872.         obj = self._globals.get(name, None)
  15873.         if type(obj) not in [
  15874.             type,
  15875.             types.ClassType,
  15876.             types.FunctionType,
  15877.             types.BuiltinFunctionType]:
  15878.             return False
  15879.         
  15880.         if name.startswith('_') and name.endswith('Ptr') or name.startswith('EVT'):
  15881.             return False
  15882.         
  15883.         return True
  15884.  
  15885.  
  15886. from _gdi import *
  15887. from _windows import *
  15888. from _controls import *
  15889. from _misc import *
  15890. _core_._wxPyFixStockObjects()
  15891.